[HELP] /admins!! [SOLVED]
#4

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!?
Try this (Not Tested):
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;
}
Reply


Messages In This Thread
[HELP] /admins!! [SOLVED] - by leapfish - 20.02.2010, 22:33
Re: [HELP] /admins!! - by LuxurioN™ - 20.02.2010, 22:36
Re: [HELP] /admins!! - by leapfish - 20.02.2010, 22:40
Re: [HELP] /admins!! - by LuxurioN™ - 20.02.2010, 22:51
Re: [HELP] /admins!! - by vestaka - 20.02.2010, 22:53
Re: [HELP] /admins!! - by leapfish - 20.02.2010, 23:05
Re: [HELP] /admins!! - by LuxurioN™ - 20.02.2010, 23:18
Re: [HELP] /admins!! - by leapfish - 20.02.2010, 23:21
Re: [HELP] /admins!! - by leapfish - 20.02.2010, 23:43
Re: [HELP] /admins!! - by leapfish - 21.02.2010, 09:49

Forum Jump:


Users browsing this thread: 1 Guest(s)