IsPlayerInRangeOfPoint Question
#1

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
Reply
#2

pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2811.7837,-1167.3248,1025.5703) || !IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))
Reply
#3

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
Reply
#4

Quote:
Originally Posted by Danyal
Посмотреть сообщение
here it is
I already beat you to it. :P
Reply
#5

LOL, thanks guys. +1 REP to both of you.
Reply
#6

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

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.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)