27.03.2011, 01:42
im type /admins its spamming 1-99 look like
Anybody Fix This Please
Код:
1 2 3 4 5 ... 99
pawn Код:
if (strcmp("/admins", cmdtext, true) == 0)
{
SendClientMessage(playerid, 0xAFAFAFAA,"|_Current Online Administrators_|");
for(new i=0; i < MAX_PLAYERS; i++)
{
if (adminlevel[playerid] >= 1)
{
new name[MAX_PLAYER_NAME], string[MAX_PLAYER_NAME+3];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s(%d)",name,i);
SendClientMessage(playerid, 0x1E90FFAA, string);
}
}
return 1;
}