if(IsPlayerInRangeOfPoint - help
#1

hello guys!
i want to make many range points for one command... like if i create 3 objects when i do /test server will
locate 3 range points .... if player is at any of that location it will get that item...

like ?
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z) //1st location
else (IsPlayerInRangeOfPoint(playerid, radius, x, y, z) // 2nd location
else (IsPlayerInRangeOfPoint(playerid, radius, x, y, z) // 3rd location
thanks in advance
Reply
#2

Код:
CMD:test(playerid, params[])
{
	//if(IsAdmin(playerid)==1)
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	    if(IsPlayerInRangeOfPoint(i, Radius, x, y, z))
	    {
	    
	    }
	    else if(IsPlayerInRangeOfPoint(i, Radius, x1, y1, z1))
	    {
	    }
        else if(IsPlayerInRangeOfPoint(i, Radius, x2, y2, z2))
	    {
	    }
	    else
	    {
	        SendClientMessage(playerid, -1, "You got nothing!");
	    }
	}
	//else return SendClientMessage(playerid, -1, "Not allowed to use command.");
	return 1;
}
You mean like this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)