SA-MP Forums Archive
helllPP!!! with commands - 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: helllPP!!! with commands (/showthread.php?tid=184343)



helllPP!!! with commands - [MKD]Max - 19.10.2010

if i want to make message thats i cant ban my self ingame
i do like this

if(Player[pID][admin]) return SencClientMessage(playerid, COLOR_RED,"You cant ban yourself");
OR
if(playerid == pID) return SendClientMessage(playerid, COLOR_RED,"You cant ban yourself");



what one is right


Re: helllPP!!! with commands - Slice - 19.10.2010

I'm guessing:
pawn Код:
if(playerid == pID) return SendClientMessage(playerid, COLOR_RED,"You cant ban yourself");
Because that would compare the player that typed the command to "pID" and send the client message if they are the same.