IsPlayerInRangeOfPoint works even if player isnt in the range of point, why?
#2

Use if(PlayerToPoint(2, playerid, -2167.3972,3306.8318,95.5800))

PHP код:
if (strcmp("/armour"cmdtexttrue10) == 0)
    {
              if(
PlayerToPoint(2playerid, -2167.3972,3306.8318,95.5800))
              {
                       
SendClientMessage(playeridCOLOR_ORANGE"Armour PickUP");
                      
SetPlayerArmour(playerid,100);
                      return 
1;
               }
               else
               {
                      
SendClientMessage(playeridCOLOR_ORANGE"You have to be at armour PickUp");
                      return 
1;
               }
    } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)