Object not being destroyed and weapon are not been given
#1

The code is placed @OnPlayerUpdate

pawn Код:
GetObjectPos(AmmoBox,X,Y,Z);
    foreach(Player,i)
    {
     if(IsPlayerInRangeOfPoint(i,0.5,X,Y,Z))
     {
      if(team[i] == A)
      {
      GivePlayerWeapon(playerid,23,60);
      GivePlayerWeapon(playerid,29,30);
      GivePlayerWeapon(playerid,33,30);
      GivePlayerWeapon(playerid,25,20);
      DestroyObject(AmmoBox);
      }
     }
    }
The code complies fine. But when i test it,The object remains there and the player who goes near the object "Ammo Box" doesn't get the Weapon.
I have no idea whats wrong. Waiting for your help thanks
Reply


Messages In This Thread
Object not being destroyed and weapon are not been given - by Gaurav_Rawat - 04.04.2014, 10:38
Re: Object not being destroyed and weapon are not been given - by Patrick - 04.04.2014, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)