SA-MP Forums Archive
is this right? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: is this right? (/showthread.php?tid=270354)



is this right? - dowster - 20.07.2011

it is supposed to send the message if the player isnt rcon admin or is lower than level 7 admin
pawn Код:
if(!IsPlayerAdmin(playerid) || gPlayerData[playerid][ADMINLEVEL] < 7) SendClientMessage(playerid, COLOR_RED, "You are not a high enough admin to set admin levels!");



Re: is this right? - =WoR=Varth - 20.07.2011

I don't see any mistake there.


Re: is this right? - DRIFT_HUNTER - 20.07.2011

That will send a message but the player will still be able to use command cos you just send message and you need to return it;

pawn Код:
if(!IsPlayerAdmin(playerid) || gPlayerData[playerid][ADMINLEVEL] < 7) return SendClientMessage(playerid, COLOR_RED, "You are not a high enough admin to set admin levels!");



Re: is this right? - dowster - 20.07.2011

okay thank you