SA-MP Forums Archive
How can i make this? - 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: How can i make this? (/showthread.php?tid=65652)



How can i make this? - Nmancer - 14.02.2009

Stealer near victim.Stealer write /stealmoney and give random money stealer.

Help Please...


Re: How can i make this? - x-cutter - 14.02.2009

Use GetDistanceBetweenPlayers in a loop to check if there's a player close enogh, and then random the victim(if the loop found somebody close enough)'s cash using random() if the player's close enough, and GivePlayerMoney the rest