Make admin help
#1

PHP код:
CMD:teeadminiks(playeridparams[])
{
    new 
playerblevelstring[128];
    if(
Logged[playerid] == true)
    {
        if(
PlayerInfo[playerid][pAdmin] >= 1)
        {
            if(!
sscanf(params"ui"playerblevel))
            {
                if(
IsPlayerConnected(playerb))
                {
                    if(
level >= && level <= 1337)
                    {
                        
format(stringsizeof(string), "ADMIN: %s tehti Administraatoriks %s poolt [Level: %s]",RPName(playerb),RPName(playerid), ARNKNM(playerb));
                        
SendAdminMessage(COLOR_YELLOWstring);
                        
SendClientMessage(playerbCOLOR_DARKREDstring);
                    }
                    else 
SendClientMessage(playeridCOLOR_GREY"Admin leveld on 0 - 1337 vahel!");
                }
                else 
SendClientMessage(playeridV_SININE"Sellist mangijat ei leitud");
            }
            else 
SendClientMessage(playeridCOLOR_GREY"{3BB9FF}KASUTA: {FFFFFF} /teeadminiks [Playerid] [Level]");
        }
        else 
SendClientMessage(playeridCOLOR_GRAD1"Sul pole хigusi, et seda commandi kasutada.");
    }
    else 
SendClientMessage(playeridV_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?
Reply
#2

help
Reply
#3

Get fixed, i miss one line..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)