weapons
#4

pawn Код:
public OnPlayerUpdate(playerid)
{
  if(GetPlayerWeapon(playerid) == 38)
  {
    new Ammo[12];
    new Wep[12];
    for(new i = 0; i < 12; i++)
    {
      GetPlayerWeaponData(playerid, i+1, Wep[i], Ammo[i]);
      if(Wep[i] == 38)
      {
        GivePlayerWeapon(playerid, 38, -Ammo[i]);
        break;
      }
    }
  }
}
Tested and it worked for me, just replace 38(Weapon ID) with the weapon ID you don't want and you can add a check to see if the person is you or not.
Reply


Messages In This Thread
weapons - by Dragonheart - 20.02.2009, 23:32
Re: weapons - by Backwardsman97 - 20.02.2009, 23:33
Re: weapons - by Dragonheart - 20.02.2009, 23:47
Re: weapons - by lavamike - 21.02.2009, 01:31
Re: weapons - by Dragonheart - 21.02.2009, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)