13.02.2009, 18:44
Quote:
Originally Posted by wordas
It was just an exaple
![]() Quote:
i think i can do most of the command but how to like if player pLeader 1 Show player nick? |
pawn Код:
if (strcmp(cmd, "/leaders", true) == 0) // The old one
{
SendClientMessage(playerid, COLOR_GRAD1, "Leaders Online:");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[playerid][pLeader] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Leader: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
return 1;
}