15.12.2010, 19:01
This code only show my name when i am 'Blue', it dont show the other players who is blue too
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/blue", cmdtext, true, 10) == 0)
{
if(GetPlayerColor(playerid) == 0x00137FAA) //0x00137FFAA = Blue color
{
SendClientMessageToAll(0xDEEE20FF, "|_List of blue players_|");
new names[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, names, sizeof(names));
format(string, sizeof(string), "%s(%d)",names ,playerid);
SendClientMessage(playerid, 0x7F0037AA, string);
}
return 1;
}
return 0;
}
//Like:
// |_List of blue players_|
// PLAYERNAME(ID)
// PLAYERNAME(ID)
// PLAYERNAME(ID)
// PLAYERNAME(ID)
// PLAYERNAME(ID)
// ect...