09.05.2017, 05:39
Can anyone show me how to make admin levels/, Im really trying to make one but I just can't come up with something! lil help here
enum PlayerInfo { pAdmin }; new pData[MAX_PLAYERS][PlayerInfo];
CMD:setadmin(playerid, params[]) { new user, level; if(pData[playerid][pAdmin] < 4) return SendClientMessage(playerid, -1, "You aren't authorized."); if(sscanf(params, "ud", user, level)) return SendClientMessage(playerid, -1, "Usage: /setadmin [playerid/PartofName] [level]"); pData[user][pAdmin] = level; // Of course you need to save the files and et cetera. return 1; }