#1

how i can make script like OnPlayerLeavePickup ?
Reply
#2

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

Can you give me a example script with IsPlayerInRangeOfPoint ?
Reply
#4

PHP код:
IsPlayerInRangeOfPoint(playeridrangexyz); 
example:
PHP код:
if(IsPlayerInRangeOfPoint(playerid10.00.00.00.0); SendClientMessage(playerid,"Congratulations you're at 0 0 0 Coordinates"); 
Reply
#5

Arent you missing a "return"?
Reply
#6

Right, it should be if(...) return SendClientMessage(...).
But as i said, using OnPlayerLeaveCheckpoint would be better.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)