27.01.2016, 17:45
Код:
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; }