Some help please :) :p
#1

Quote:

CMDetlevel(playerid, params[])
{
new string[SOS];
new toplayerid, level;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "ERROR: You Aren't High Level Enough To Use This Command");
if(sscanf(params, "ui", toplayerid, level)) return SendClientMessage(playerid, RED, "ERROR: /setlevel [ID] [Level]");
if(!IsPlayerConnected(toplayerid)) return SendClientMessage(playerid, RED, "ERROR: The player is not connected");
if(level < 0 || level > 7) return SendClientMessage(playerid, RED, "ERROR: The level must be beetwen 0 & 7");
format(string, SOS, "***%s has been set as administator level %i", pInfo[toplayerid][Name], level);
SendClientMessage(playerid, GREEN, string);
format(string, SOS, "You have been set as administrator level %i by %s", level, pInfo[playerid][Name]);
SendClientMessage(toplayerid, GREEN, string);
pInfo[playerid][Admin]=level;
return 1;
}

i want to add pInfo[playerid][Admin]>5 at the same line of IsPlayerAdmin
Reply


Messages In This Thread
Some help please :) :p - by ahmedraed - 13.11.2015, 20:11
Re: Some help please :) :p - by Ritzy2K - 13.11.2015, 20:17
Re: Some help please :) :p - by ahmedraed - 13.11.2015, 20:23
Re: Some help please :) :p - by Ritzy2K - 13.11.2015, 20:25
Re: Some help please :) :p - by ahmedraed - 13.11.2015, 20:31
Re: Some help please :) :p - by Ritzy2K - 14.11.2015, 05:29
Re: Some help please :) :p - by Karan007 - 14.11.2015, 05:31
Re: Some help please :) :p - by Ritzy2K - 14.11.2015, 05:35
Re: Some help please :) :p - by Ritzy2K - 14.11.2015, 05:37
Re: Some help please :) :p - by Karan007 - 14.11.2015, 05:40

Forum Jump:


Users browsing this thread: 5 Guest(s)