What is wrong with my comand?[Y_commands]
#2

Change this:
pawn Код:
if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You must be admin");
to this:
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You must be admin");
The ! checks if the player isn't an admin, if he isn't it will send him the message, if he is it will grant the command.

IsPlayerAdmin(playerid) = Admin
!IsPlayerAdmin(playerid) = Not Admin
Reply


Messages In This Thread
What is wrong with my comand?[Y_commands] - by Zoepie - 23.11.2015, 21:59
Re: What is wrong with my comand?[Y_commands] - by nogh445 - 24.11.2015, 03:00

Forum Jump:


Users browsing this thread: 1 Guest(s)