20.02.2010, 22:51
Quote:
|
Originally Posted by LyQue
Oh thanks © Tђэ LυxυяiσN™ !! Now I don't have warnings...
Only when I do /admins Still shows as no admin online, what to do please help!? ![]() |
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
new string[256];
new player[250];
SendClientMessage(playerid, COLOR_FINALSCORE, "|---------------Online Admins---------------|");
new count;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 6)
{
GetPlayerName(i, player, sizeof(player));
format(string, 256, "Administrators: %s(%d)-%d",player, i, PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_CYAN, string);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_CYAN, "No admin online at the moment.");
}
SendClientMessage(playerid, COLOR_FINALSCORE, "|--------------------------------------------------|");
return 1;
}


