Posts: 105
Threads: 14
Joined: Nov 2015
Reputation:
0
how i can make script like OnPlayerLeavePickup ?
Posts: 197
Threads: 12
Joined: Oct 2015
Reputation:
0
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.
Posts: 105
Threads: 14
Joined: Nov 2015
Reputation:
0
Can you give me a example script with IsPlayerInRangeOfPoint ?
Posts: 1,266
Threads: 6
Joined: Oct 2014
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");
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
Arent you missing a "return"?
Posts: 197
Threads: 12
Joined: Oct 2015
Reputation:
0
Right, it should be if(...) return SendClientMessage(...).
But as i said, using OnPlayerLeaveCheckpoint would be better.