/911 help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /911 help (
/showthread.php?tid=436644)
/911 help -
jimis - 12.05.2013
Hallo guys,i have create /911 command but i have some difficultys..
When someone select 'call police' then i want to send a message to all players who have only BLUE color.
How i can make it
Re: /911 help -
[DX]Aru12345 - 12.05.2013
We need to see your Team enum
Re: /911 help -
Kwarde - 12.05.2013
If you want to check for the specific color blue, use
GetPlayerColor. For example:
pawn Код:
#define COLOR_BLUE 0x0000FFFF
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (GetPlayerColor(i) != COLOR_BLUE || !IsPlayerConnected(i)) continue;
SendClientMessage(i, COLOR_WHITE, str); //Note: This is the message that must be sent to the police
}
Important Note: GetPlayerColor will return nothing unless SetPlayerColor has been used!
Click
HERE for a fix.
Re: /911 help -
jimis - 12.05.2013
Ok thanks guys