SA-MP Forums Archive
OnPlayerClickPlayer - 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: OnPlayerClickPlayer (/showthread.php?tid=314016)



OnPlayerClickPlayer - No Fear - 28.01.2012

Hi, anyone make a little script "OnPlayerClickPlayer" When i click onmyself it gives me like 5$ or smth.... I done this when i click on other player, but don't know how to make when i click on miself.
Thanks


Re: OnPlayerClickPlayer - Konstantinos - 28.01.2012

pawn Код:
if( clickedplayerid == playerid ) return SendClientMessage( playerid, -1, "You cannot click on yourself!" );
// Your Code
Or
pawn Код:
if( clickedplayerid != playerid )
{
    // Your Code
}



Re: OnPlayerClickPlayer - No Fear - 28.01.2012

Thanks