Set Ammo
#4

Neither of those two work... I think the SetPlayerAmmo thing is bugged or something, here's my code.

pawn Код:
switch(GetPlayerWeapon(playerid)) // mp5, tech 9, mac 10 by lars
        {
            case 29, 28, 32:
            {
                new gun = GetPlayerWeapon(playerid);
                new ammo = GetPlayerAmmo(playerid);
                ammo -=30;
                SetPlayerAmmo(playerid,gun,ammo);
                //RemovePlayerWeapon(playerid, gun);
                PlayerInfo[playerid][pHadGun] = 1;
                PlayerInfo[playerid][pHadGunID] = gun;
            }
        }
This literally doesn't do anything, player still has all his ammo.
Reply


Messages In This Thread
Set Ammo - by Lars_Frederiksen - 26.11.2010, 21:39
Re: Set Ammo - by DaneAMattie - 26.11.2010, 22:06
Respuesta: Set Ammo - by OwlCity - 26.11.2010, 22:08
Re: Set Ammo - by Lars_Frederiksen - 26.11.2010, 22:59
Re: Set Ammo - by The_Moddler - 26.11.2010, 23:02
Re: Set Ammo - by Lars_Frederiksen - 26.11.2010, 23:06
Re: Set Ammo - by XoSarahMoX - 26.11.2010, 23:12
Re: Set Ammo - by Lars_Frederiksen - 26.11.2010, 23:18
Re: Set Ammo - by The_Moddler - 26.11.2010, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)