IsPlayerInRangeOfPoint Question - 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)
+--- Thread: IsPlayerInRangeOfPoint Question (
/showthread.php?tid=388171)
IsPlayerInRangeOfPoint Question -
jakejohnsonusa - 27.10.2012
How do I add 2 points to : if(!IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z))
Here's what I mean/need: In my Firefighter Faction there are now two Fire Departments that /duty can be used at. How do I add two seperate points to the /duty part of the script. This is what I have now:
Код:
else if(PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12)
{
if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2811.7837,-1167.3248,1025.5703))
{
I need to add a second point to this so that you can go on duty at BOTH stations. Can someone tell me how to do this (please include what to put).
Thanks: jakejohnsonusa
Re: IsPlayerInRangeOfPoint Question -
zDivine - 27.10.2012
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2811.7837,-1167.3248,1025.5703) || !IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))
Re: IsPlayerInRangeOfPoint Question -
Danyal - 27.10.2012
Quote:
else if(PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12)
{
if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2811.7837,-1167.3248,1025.5703) || !IsPlayerInRangeOfPoint(playerid, radius, posx, posy, posz) )
{
|
here it is
Re: IsPlayerInRangeOfPoint Question -
zDivine - 27.10.2012
Quote:
Originally Posted by Danyal
here it is
|
I already beat you to it. :P
Re: IsPlayerInRangeOfPoint Question -
jakejohnsonusa - 27.10.2012
LOL, thanks guys. +1 REP to both of you.
Re: IsPlayerInRangeOfPoint Question -
jakejohnsonusa - 27.10.2012
Didn't work. Now it didn't work at the main FD (pont 1) or at (point 2)... This is supposed to be at Point 1 you can go on duty or point 2 can go on duty. Anyone know?
Please and Thanks: jakejohnsonusa
Respuesta: IsPlayerInRangeOfPoint Question -
WCrimson - 27.10.2012
pawn Код:
if( IsPlayerInRangeOfPoint(playerid, 3.0, 2811.7837,-1167.3248,1025.5703) || IsPlayerInRangeOfPoint(playerid, radius, posx, posy, posz) )
{
//Code to run if it is in a position.
}