/admins command doesnt work
#1

Someone tell me whats wrong, Complies no errors but doesnt show admins.
Quote:

if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] List of online adminstrators");
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 4)
{
new admtext[64];
if(PlayerInfo[playerid][pAdmin] == 4) { admtext = "level 4"; }
else if(PlayerInfo[playerid][pAdmin] == 3) { admtext = "level 3"; }
else if(PlayerInfo[playerid][pAdmin] == 2) { admtext = "level 2"; }
else if(PlayerInfo[playerid][pAdmin] == 1) { admtext = "level 1"; }
else { admtext = "level 1"; }
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "%s %s", sendername,admtext);
SendClientMessage(playerid, COLOR_ADMIN, string);
}
}
}
}
return 1;
}

Reply


Messages In This Thread
/admins command doesnt work - by bubka3 - 05.09.2009, 02:28
Re: /admins command doesnt work - by Zeex - 05.09.2009, 02:36
Re: /admins command doesnt work - by bubka3 - 05.09.2009, 02:43
Re: /admins command doesnt work - by Zeex - 05.09.2009, 02:55
Re: /admins command doesnt work - by bubka3 - 05.09.2009, 03:04
Re: /admins command doesnt work - by Zeex - 05.09.2009, 03:14
Re: /admins command doesnt work - by bubka3 - 05.09.2009, 03:15
Re: /admins command doesnt work - by bubka3 - 05.09.2009, 03:17
Re: /admins command doesnt work - by Zeex - 05.09.2009, 03:17
Re: /admins command doesnt work - by dugi - 05.09.2009, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)