29.05.2011, 15:05
Guys how to set the admin level of this into 5?
GUYS PLEASE I NEED HELP
Quote:
CMDetlevel(playerid, params[]) { if(PVar[playerid][pLevel] >= 4 || IsPlayerAdmin(playerid)) { new pID, Level; if(sscanf(params, "ui", pID, Level)) return SendClientMessage(playerid, COLOR_RED, "* Usage: /SetLevel < Player ID > < Level >"); if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "That user is not connected!"); format(Msg, sizeof(Msg), "Admin: %s(%d) has given you admin level: %d", pName(playerid), playerid, Level); SendClientMessage(playerid, COLOR_LIGHTBLUE, Msg); format(Msg, sizeof(Msg), "You have been given admin level: %d to: %s(%d)", Level, pName(pID), pID); SendClientMessage(playerid, COLOR_LIGHTBLUE, Msg); return PVar[pID][pLevel] = Level; } else return AdminCMD(playerid, 3); } |