if(!IsPlayerInRangeOfPoint(playerid) question
#1

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
Reply
#2

Perhaps create a timer? Or use OnPlayerUpdate.
Reply
#3

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.
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)