not working cmd
#2

pawn Код:
if(PlayerInfo[playerid][aLevel] > PlayerInfo[playerid][aLevel]) return SendClientMessage(playerid, COLOR_RED, "Admin Usage: The person's level is higher than yours!");
You're using 'playerid' twice. so lets say playerid is the admin using /ban. you need to change the first part to the id of the player your trying to ban like:

pawn Код:
if(PlayerInfo[bannedid][aLevel] > PlayerInfo[playerid][aLevel]) return SendClientMessage(playerid, COLOR_RED, "Admin Usage: The person's level is higher than yours!");
The > is right in that sense, your saying "If the admin level of the guy being banned is greater than the admin level of the admin using /ban then return the message.

Alternatively you could use >= to prevent admins from banning players with the same admin level as them. Does that help?
Reply


Messages In This Thread
not working cmd - by pelani - 13.02.2013, 19:56
Re: not working cmd - by lavamike - 13.02.2013, 20:07
Re: not working cmd - by blackdragon1 - 13.02.2013, 20:09
Re: not working cmd - by pelani - 13.02.2013, 20:16

Forum Jump:


Users browsing this thread: 1 Guest(s)