Makeadmin saving security cod
#2

Код:
CMD:login(playerid,params[]) { //how to login as administrator 
    new nmr; 
    if(sscanf(params,"i",nmr)) return SendClientMessage(playerid,COLOR_RED,"Usage: /login [admin code]"); 
    if(nmr != AdminKod[playerid]) return SendClientMessage(playerid,COLOR_RED,"Wrong admin code"); 
    AdminLogovan[playerid] = 1; //admin logged in  
    PlayerInfo[playerid][pAdmin] = 7; 
    SendClientMessage(playerid,COLOR_RED,"You have logged in as administrator!"); 
    return true; 
}
this system is not good. you will have to do it rank by rank and set the permission to another varible or something, I don't have the time to do it for you.
Reply


Messages In This Thread
Makeadmin saving security cod [ solved] - by Deny1 - 27.01.2016, 17:25
Re: Makeadmin saving security cod - by rambalili2 - 27.01.2016, 17:45
Re: Makeadmin saving security cod - by itsCody - 27.01.2016, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)