[HELP]Can't make myself admin!
#8

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Nothing is wrong there. Maybe a problem with your /makeadmin command. Try this
pawn Код:
CMD:makeadmin(playerid,params[])
{
    if(IsPlayerAdmin(playerid) || pInfo[playerid][AdminLevel] >= 4)
    {
        new tid, tname[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], str[128], level;
        if(sscanf(params,"ui",tid,level)) return SendClientMessage(playerid,-1,"[USAGE] /makeadmin [ID] [level 1 - 5]");
        if(tid == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"Player is not online!");
        if(level > 5) return SendClientMessage(playerid,-1,"Only level 1 - 5 only");
        GetPlayerName(playerid,name,sizeof(name));
        GetPlayerName(tid,tname,sizeof(tname));
        format(str,sizeof(str),"`` Admin %s has made %s(%d) as an admin level %i",name,tname,tid,level);
        pInfo[tid][Admin] = level;
        SendClientMessageToAll(-1,str);
        return 1;
    }
    return 1;
}
OK, i tried it. It changes players admin level but still "You are not admin!". Maybe it's something wrong with admin commands. Can you please find some admin commands that will working with my code. +REP
Reply


Messages In This Thread
[HELP]Can't make myself admin! - by anito - 29.06.2012, 08:50
Re: [HELP]Can't make myself admin! - by leonardo1434 - 29.06.2012, 09:00
Re: [HELP]Can't make myself admin! - by anito - 29.06.2012, 09:07
Re: [HELP]Can't make myself admin! - by newbienoob - 29.06.2012, 09:10
Re: [HELP]Can't make myself admin! - by anito - 29.06.2012, 09:11
Re: [HELP]Can't make myself admin! - by newbienoob - 29.06.2012, 09:20
Re: [HELP]Can't make myself admin! - by anito - 29.06.2012, 09:24
Re: [HELP]Can't make myself admin! - by anito - 29.06.2012, 09:37
Re: [HELP]Can't make myself admin! - by newbienoob - 29.06.2012, 09:43
Re: [HELP]Can't make myself admin! - by anito - 29.06.2012, 09:49

Forum Jump:


Users browsing this thread: 1 Guest(s)