SA-MP Forums Archive
Make admin help - 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)
+--- Thread: Make admin help (/showthread.php?tid=614204)



Make admin help - b0b - 05.08.2016

PHP код:
CMD:teeadminiks(playerid, params[])
{
    new 
playerb, level, string[128];
    if(
Logged[playerid] == true)
    {
        if(
PlayerInfo[playerid][pAdmin] >= 1)
        {
            if(!
sscanf(params, "ui", playerb, level))
            {
                if(
IsPlayerConnected(playerb))
                {
                    if(
level >= 0 && level <= 1337)
                    {
                        
format(string, sizeof(string), "ADMIN: %s tehti Administraatoriks %s poolt [Level: %s]",RPName(playerb),RPName(playerid), ARNKNM(playerb));
                        
SendAdminMessage(COLOR_YELLOW, string);
                        
SendClientMessage(playerb, COLOR_DARKRED, string);
                    }
                    else 
SendClientMessage(playerid, COLOR_GREY, "Admin leveld on 0 - 1337 vahel!");
                }
                else 
SendClientMessage(playerid, V_SININE, "Sellist mangijat ei leitud");
            }
            else 
SendClientMessage(playerid, COLOR_GREY, "{3BB9FF}KASUTA: {FFFFFF} /teeadminiks [Playerid] [Level]");
        }
        else 
SendClientMessage(playerid, COLOR_GRAD1, "Sul pole хigusi, et seda commandi kasutada.");
    }
    else 
SendClientMessage(playerid, V_SININE, "Sa ei ole veel sisse loginud");
    return 
1;
} 
Hei, i have this problem when i want make admin it but The higest admin lvl all time? how ican fix it?


Re: Make admin help - b0b - 05.08.2016

help


Re: Make admin help - b0b - 05.08.2016

Get fixed, i miss one line..