SA-MP Forums Archive
Multiple ''PlayerToPoint'' - 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: Multiple ''PlayerToPoint'' (/showthread.php?tid=104109)



Multiple ''PlayerToPoint'' - Mujib - 22.10.2009

Hello,

Can i have multiple PlayerToPoint places?
If yes, how to do that?

Thanks in Advance.


Re: Multiple ''PlayerToPoint'' - Peter_Corneile - 22.10.2009

Yes
pawn Код:
if(PlayerToPoint(radius,playerid,X,Y,Z)
{
//something here
return 1;
}
else if(PlayerToPoint(radius,playerid,X,Y,Z)
{
//something here too
return 1;
}
And so on.....


Re: Multiple ''PlayerToPoint'' - Adamrcook - 23.10.2009

If your using 0.3a I highly recommend using this: https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint