16.02.2013, 20:59
If a player is
I want it to display the "rank" of the player to all other online
players, And the rank will be displayed before the name of the player.
FD1 = Fire Department
pawn Код:
PlayerInfo[playerid][FD1] = 1
pawn Код:
[FD] = 1;
FD1 = Fire Department
pawn Код:
COMMAND:r(playerid, params[])
{
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
if(PlayerInfo[i][FD1] = 1) // is this correct?
{
SendClientMessage(i, [Fire Department]John_Johnson: "MESSAGE" // we have to use a string i think? I need help with this guys. To get the name of the player, and the message he wants to send, and the message will be sendt to all online FD = 1 players, right?
}
}
}
return 1;
}