SetPlayerVoiceIgnoreFrom: Difference between revisions
Jump to navigation
Jump to search
(→Syntax: OOP syntax added) |
(needs example) |
||
Line 1: | Line 1: | ||
{{Server function}} | {{Server function}}__NOTOC__ | ||
__NOTOC__ | |||
<div style="border: 1px dotted blue; background: #00CC66;padding:4px;margin-bottom:2px;">'''Note''': This function should only be used as a low-level function for advanced users. For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]</div> | <div style="border: 1px dotted blue; background: #00CC66;padding:4px;margin-bottom:2px;">'''Note''': This function should only be used as a low-level function for advanced users. For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]</div> | ||
{{Needs Example}} | |||
This function allows you to mute voices for a player. | This function allows you to mute voices for a player. | ||
Revision as of 15:32, 6 December 2014
Note: This function should only be used as a low-level function for advanced users. For typical Voice scripting, please see the Voice Resource
Script Example Missing Function SetPlayerVoiceIgnoreFrom needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This function allows you to mute voices for a player.
Syntax
bool setPlayerVoiceIgnoreFrom ( element thePlayer, mixed ignoreFrom )
OOP Syntax Help! I don't understand this!
- Method: player:setVoiceIgnoreFrom(...)
- Variable: .voiceIgnoreFrom
Required Arguments
- thePlayer: The player you wish to change
- ignoreFrom: Element or table of elements which the player should not hear voices from. Use nil if no one should be ignored.
Returns
Returns true if the value was set successfully, false otherwise.
Example
Click to collapse [-]
ServerSee Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState