/911 help
#1

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
Reply
#2

We need to see your Team enum
Reply
#3

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.
Reply
#4

Ok thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)