Scripting/Squirrel/Functions/Misc/MessageAllExcept
From VC-MP Wiki
Sends a message to every player in the game except to specified player.
Syntax
bool MessageAllExcept( string text, player plr )
Arguments
- text - This is the message to send to the player
- plr - This is the pointer of the player not to send the message
Example
This will send a message saying 'Testing message functions...' to all players except the one who uses the command '/c message'.
function onPlayerCommand( player, cmd, text ) { if ( cmd == "message" ) { MessageAllExcept( "Testing message functions...", player ); } }
Notes
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.
Related Functions
- Message
- MessagePlayer
- MessageAllExcept
- PrivMessage
- PrivMessageAll
- ClientMessage
- ClientMessageToAll
- Announce
- AnnounceAll
- SendPlayerMessage
- KickPlayer
- BanPlayer
- BanIP
- UnbanIP
- GetWeaponName
- GetWeaponID
- GetDistrictName
- GetSkinName
- GetTickCount
- GetTime
- GetFullTime
- IsNum
- BindKey
- UnbindKey
- CallFunc
- InPoly
- DistanceFromPoint
- ReloadScripts
