23.02.2018, 09:11
new PlayerAdmin[MAX_PLAYERS];
On connect store and load this variable.
Make a 'makeadmin' command then just check the level for using it, ex.:
CMD:makeadmin(blabla) {
blabla
if(PlayerAdmin[playerid] != 3) return SCM(blabla, "You need to be level 3 admin.");
PlayerAdmin[another] = level;
return 1;
}
On connect store and load this variable.
Make a 'makeadmin' command then just check the level for using it, ex.:
CMD:makeadmin(blabla) {
blabla
if(PlayerAdmin[playerid] != 3) return SCM(blabla, "You need to be level 3 admin.");
PlayerAdmin[another] = level;
return 1;
}