[SOLVED] /admins problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] /admins problem (
/showthread.php?tid=133233)
[SOLVED] /admins problem -
FreddeN - 11.03.2010
When someone types /admins it only shows Level 10, I got level 1-10 but it only shows the highest level.
Код:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_ADMINCHAT, "Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 11)
{
new admin = PlayerInfo[playerid][pAdmin];
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "Level %d: %s", admin, sendername);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}
}
return 1;
}
How can I fix this, thanks
Re: [HELP] /admins problem -
zekiii - 11.03.2010
new admin = PlayerInfo[
i][pAdmin];
Re: [HELP] /admins problem -
FreddeN - 11.03.2010
Thanks