Weapon Ammo Textdraw
#4

Here is what you can use:
pawn Код:
new currentammo[MAX_PLAYERS];
new gunammo[MAX_PLAYERS];

public OnPlayerChangeWeapon(playerid, oldweapon, newweapon)
{
    if(newweapon == 27) // taking spas for example
    {
        currentammo[playerid] = 7;
        gunammo[playerid] = GetPlayerAmmo(playerid)-currentammo[playerid];
    }
    return 1;
}
and:
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(weaponid == 27)
    {
        currentammo[playerid] -= 1;
    }
    return 1;
}
Reply


Messages In This Thread
Weapon Ammo Textdraw - by De4dpOol - 12.04.2015, 07:45
Re: Weapon Ammo Textdraw - by R0 - 12.04.2015, 07:49
Re: Weapon Ammo Textdraw - by De4dpOol - 12.04.2015, 08:16
Re: Weapon Ammo Textdraw - by R0 - 12.04.2015, 08:57
Re: Weapon Ammo Textdraw - by Gammix - 12.04.2015, 09:08

Forum Jump:


Users browsing this thread: 2 Guest(s)