SA-MP Forums Archive
IsPlayerInArea - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IsPlayerInArea (/showthread.php?tid=69094)



IsPlayerInArea - Exquiza - 15.03.2009

Hi all,
http://pastebin.com/m6e2b1b41
I have a question,
I want to create a 2nd checkpoint, (the player needs to bring the oil back to his base), but it didn't worked with a checkpointstreamer.
So now I want to try it with 'IsPlayerInArea', but how can I do this?




Re: IsPlayerInArea - Weirdosport - 15.03.2009

Do you actually need 2 checkpoints on at one given moment for one player? because if you need a pickup to get the oil, and a pickup to deliver it it would be easiest scripting it that way. Otherwise I suggest you look at this thread, as it contains not only the code you need, but a script to help you get the co-ordinates.


Re: IsPlayerInArea - Exquiza - 15.03.2009

Quote:
Originally Posted by Weirdosport
Do you actually need 2 checkpoints on at one given moment for one player?
Euhm nope, If the player, if he's an attacker, spawns, he get's 1 checkpoint to get the oil.
If he has the oil then, he needs to return it to there base.
But about your pickupmethod, didn't think about that


Re: IsPlayerInArea - Weirdosport - 15.03.2009

I meant checkpoint, but hey if pickups work for you then fine. The only disadvantage is that you don't get a checkpoint on the minimap. And make sure you use a vehicle compatible pickup!


Re: IsPlayerInArea - Exquiza - 15.03.2009

Quote:
Originally Posted by Weirdosport
I meant checkpoint, but hey if pickups work for you then fine. The only disadvantage is that you don't get a checkpoint on the minimap. And make sure you use a vehicle compatible pickup!
Oh yea sry my fault, nvm that about pickups.
But you solved my problem by giving the FS, ty for that


Re: IsPlayerInArea - Weirdosport - 15.03.2009

Not a problem.