Multiple coordinates
#1

Hey i have a problem... how do you make this code where I can have mutliple coordinates

Quote:

if(!IsPlayerInRangeOfPoint(playerid, 5, 202.0794,168.0728,1003.0234) || GetPlayerInterior(playerid) != 3)
{
return SystemMsg(playerid, "You are not in the arrest pickup in Police Department!");
}

Reply
#2

Multiple coordinates??

You mean:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5, 202.0794,168.0728,1003.0234) || IsPlayerInRangeOfPoint(playerid, 10.00, X,Y,Z))
??
Reply
#3

yep but mine says the coords you cant be at with the ! so i needa be able to add more coords thats what the return was for
Reply
#4

Код:
if(!IsPlayerInRangeOfPoint(playerid, 5, 202.0794,168.0728,1003.0234) || !IsPlayerInRangeOfPoint(playerid, 5, X,Y,Z) || !IsPlayerInRangeOfPoint(playerid, 5, X,Y,Z))
{
And just keep doing that
Reply
#5

alright i guess ill get rid of the interior part its not realy needed
Reply
#6

Yes, int part is not really needed, you probbably won't get there if you are not in the INT3 anyways.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)