It's not like you need a system..
PHP код:
#define ADMINOVERRIDE_PASS changeme123
#define MAX_ADMIN_OVERRIDE_ATTEMPTS 3
YCMD:adminoverride(playerid, params[], help) {
new msg[128];
new pass[64];
if(!sscanf(params,"s[64]", pass)) {
if(!strcmp(pass, ADMINOVERRIDE_PASS)) {
SetPVarInt(playerid, "YOUR ADMIN PVAR", [WHAT EVER YOU ADMIN LEVEL MAXES]);
EnumName[playerid][AdminLevel][Level]
SendClientMessage(playerid, X11_BLUE3, "Accepted!");
} else {
new numoverrides = GetPVarInt(playerid, "FailedAdminOverrides");
if(numoverrides >= MAX_ADMIN_OVERRIDE_ATTEMPTS) {
KickEx(playerid, "To many admin override attempts");
return 0;
}
SetPVarInt(playerid, "FailedAdminOverrides", ++numoverrides);
return 0;
}
}
return 1;
}