SA-MP Forums Archive
[help Please Fast] - 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: [help Please Fast] (/showthread.php?tid=266920)

Pages: 1 2


Re: [help Please Fast] - Shadoww5 - 06.07.2011

PHP код:
CMD:admins(playeridparams[])
{
    
SendClientMessage(playeridRed" ** Admins Online: **");
    for(new 
0MAX_PLAYERSi++)
    {
        if(
PlayerInfo[i][pAdmin] >= 1)
        {
            new 
string[40];
            
GetPlayerName(istring24);
            
format(string40"|*| Admin: %s |*|"string);
            
SendClientMessage(playeridLIGHTBLUEstring);
        }
    }
    return 
1;




Re: [help Please Fast] - Snipa - 06.07.2011

Tell us what variable you are using to represent a player's admin level. Is it PlayerInfo[MAX_PLAYERS][Level]?


Re: [help Please Fast] - HayZatic - 06.07.2011

Quote:
Originally Posted by Snipa
Посмотреть сообщение
Tell us what variable you are using to represent a player's admin level. Is it PlayerInfo[MAX_PLAYERS][Level]?
Its Already Fixed