10.09.2012, 14:29
Okay I been working on my admin system, due to alot of ABUSIVE head admins, I want to make /setlevel only for RCON admins.
This is my code
I need to change the
But when i remove the if(PlayerInfo[playerid][Level] >= 5 then it has errors please Help me!
This is my code
pawn Код:
dcmd_setlevel(playerid,params[]) {
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 5 || IsPlayerAdmin(playerid)) {
new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /setlevel [playerid] [level]");
new player1, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
player1 = strval(tmp);
if(!strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setlevel [playerid] [level]");
level = strval(tmp2);
pawn Код:
if(PlayerInfo[playerid][Level] >= 5 || IsPlayerAdmin(playerid)) {