If isplayerinrangeofpoint
#1

Код:
CMD: testing(playerid, params[])
        {
              if(IsPlayerInRangeOfPoint(playerid, 5, 2102.4290, 2257.4309, 11.0234)) //(playerid, id, x, y, z)
                {
                        ShowModelSelectionMenu(playerid, skinlist, "skins");

                }
                else 
                {
                        SendClientMessage(playerid, 0xFF3333FF, "Error");
                }
                return 1;
}
How I can add more IsPlayerInRangeOfPoint ? for example: if(IsPlayerInRangeOfPoint(playerid, 5, 2368.8657, 1983.3940, 10.8203)) ?
Reply
#2

Could make an array with all of the locations then check in that one state if their in range of the positions in the array else ...
Reply
#3

Quote:
Originally Posted by Oficer
Посмотреть сообщение
Код:
CMD: testing(playerid, params[])
        {
              if(IsPlayerInRangeOfPoint(playerid, 5, 2102.4290, 2257.4309, 11.0234)) //(playerid, id, x, y, z)
                {
                        ShowModelSelectionMenu(playerid, skinlist, "skins");

                }
                else 
                {
                        SendClientMessage(playerid, 0xFF3333FF, "Error");
                }
                return 1;
}
How I can add more IsPlayerInRangeOfPoint ? for example: if(IsPlayerInRangeOfPoint(playerid, 5, 2368.8657, 1983.3940, 10.8203)) ?
use ||

PHP код:
if(IsPlayerInRangeOfPoint(playerid52102.42902257.430911.0234) || IsPlayerInRangeOfPoint(playerid52368.86571983.394010.8203)) 
or

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
Could make an array with all of the locations then check in that one state if their in range of the positions in the array else ...
Reply
#4

Quote:
Originally Posted by Alvitr
Посмотреть сообщение
use ||

PHP код:
if(IsPlayerInRangeOfPoint(playerid52102.42902257.430911.0234) || IsPlayerInRangeOfPoint(playerid52368.86571983.394010.8203)) 
or
I can't believe, it's working
Thanks, bro!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)