05.06.2013, 08:14
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]);
}