Help - 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: Help (
/showthread.php?tid=597085)
Help -
SilverStand - 26.12.2015
how i can make script like OnPlayerLeavePickup ?
Re: Help -
lucamsx - 26.12.2015
You can use IsPlayerInRangeOfPoint with pickup's location and timer check, but that's a bit wacky. I'd rather use OnPlayerLeaveCheckpoint and an invisible checkpoint type.
Re: Help -
SilverStand - 26.12.2015
Can you give me a example script with IsPlayerInRangeOfPoint ?
Re: Help -
jlalt - 26.12.2015
PHP код:
IsPlayerInRangeOfPoint(playerid, range, x, y, z);
example:
PHP код:
if(IsPlayerInRangeOfPoint(playerid, 10.0, 0.0, 0.0, 0.0); SendClientMessage(playerid,"Congratulations you're at 0 0 0 Coordinates");
Re: Help -
Ritzy2K - 26.12.2015
Arent you missing a "return"?
Re: Help -
lucamsx - 26.12.2015
Right, it should be if(...) return SendClientMessage(...).
But as i said, using OnPlayerLeaveCheckpoint would be better.