23.01.2015, 23:28
pawn Код:
stock GivePlayerAmmoForAllWeaps(playerid, ammo)
{
if(ammo < 1 || !IsPlayerConnected(playerid))
return 0;
new _w[2];
for(new i; i<12;i++)
{
GetPlayerWeaponData(playerid,i, _w[0], _w[1]);
if(!weap[0])
continue;
SetPlayerAmmo(playerid, _w[0], _w[1]+ammo);
}
return 1;
}