weapon automatically removed with 0 ammo
#3

Quote:
Originally Posted by ReD_HunTeR
Посмотреть сообщение
try this:

PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
   if(
GetPlayerAmmo(playerid) == 1)
   {
      
GivePlayerGun(playeridweaponid1);
   }
   return 
1;

Thanks, you have illuminated me!
I had a bug in OnPlayerUpdate and i've used "< 2" instead of "== 1". Because if player shooting with a M4 (it have rapid fire) the player receive the weapon after some ms.
Reply


Messages In This Thread
weapon automatically removed with 0 ammo - by J4Rr3x - 14.04.2015, 20:27
Re: weapon automatically removed with 0 ammo - by ReD_HunTeR - 14.04.2015, 20:31
Re: weapon automatically removed with 0 ammo - by J4Rr3x - 14.04.2015, 20:47
Re: weapon automatically removed with 0 ammo - by Kar - 15.04.2015, 00:44
Re: weapon automatically removed with 0 ammo - by J4Rr3x - 15.04.2015, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)