Question. - 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)
+--- Thread: Question. (
/showthread.php?tid=592824)
Question. -
SpikeSpigel - 30.10.2015
How can I check if someone is trying to use the command on theirself ? Like, how can I do that if someone is trying to pay money to their self they will get a message that tells them they can't give money to theirself ?
Re: Question. -
Dusan01 - 30.10.2015
Here u go, just id change to ur sscanf result:
PHP код:
if(playerid == id) return SendClientMessage(playerid,-1,"U cannot give urself money");