Y_INI Weapon Saving problem
#5

pawn Код:
for(new s = 0; s < MAX_WEAPONS; s++)
    {
        new ammo = Weapon_Info[playerid][pAmmo][s];
        GivePlayerWeapon(playerid, Weapon_Info[playerid][pWeapon][s], Weapon_Info[playerid][pAmmo][s]);
        SetPlayerAmmo(playerid, GivePlayerWeapon(playerid, Weapon_Info[playerid][pWeapon][s], Weapon_Info[playerid][pAmmo][s]), Weapon_Info[playerid][pWeapon][s]-ammo);
        SetPlayerAmmo(playerid, Weapon_Info[playerid][pWeapon][s], Weapon_Info[playerid][pAmmo][s]);
    }
When a player spawns the ammo will automatically subtract itself.
Reply


Messages In This Thread
Y_INI Weapon Saving problem - by Tingesport - 03.06.2013, 20:19
Re: Y_INI Weapon Saving problem - by Captive - 03.06.2013, 21:24
Re: Y_INI Weapon Saving problem - by Tingesport - 04.06.2013, 23:45
Re: Y_INI Weapon Saving problem - by [KHK]Khalid - 05.06.2013, 00:00
Re: Y_INI Weapon Saving problem - by Tingesport - 05.06.2013, 08:14

Forum Jump:


Users browsing this thread: 2 Guest(s)