SA-MP Forums Archive
if(!IsPlayerInRangeOfPoint(playerid) 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: if(!IsPlayerInRangeOfPoint(playerid) question (/showthread.php?tid=520965)



if(!IsPlayerInRangeOfPoint(playerid) question - iThePunisher - 21.06.2014

i have a robbery with if(!IsPlayerInRangeOfPoint(playerid) function
but how can i do it when player leave the rangeofpoint he will fail the robbery?
i know how to make it i should add if(!IsPlayerInRangeOfPoint(playerid)
but the question is where to add this code so the robbery fail will work


Re: if(!IsPlayerInRangeOfPoint(playerid) question - Cena44 - 21.06.2014

Perhaps create a timer? Or use OnPlayerUpdate.


Re: if(!IsPlayerInRangeOfPoint(playerid) question - RenovanZ - 21.06.2014

Make a checkpoint around the robbery place, then if he leave the checkpoint, OnPlayerLeaveCheckpoint will called, then script something which make player fail to rob.


Respuesta: if(!IsPlayerInRangeOfPoint(playerid) question - Jex_Lafer - 21.06.2014

could be with
you create an area where's the bank
and when:
pawn Код:
OnPlayerLeaveDynamicArea(playerid, areaid)
fail at the theft


Re: if(!IsPlayerInRangeOfPoint(playerid) question - iThePunisher - 21.06.2014

i already have robbery with checkpoint i wanted to make the robbery with isplayerinrangeofpoint
but anyway im gonna create timer
Thanks for the info cena44