25.01.2012, 16:28
pawn Код:
// At The Bottom
stock RemovePlayerWeapon(playerid, pweaponid)
{
new plyWeapons[12];
new plyAmmo[12];
for(new slot = 0; slot != 12; slot++)
{
new pwep, pammo;
GetPlayerWeaponData(playerid, slot, pwep, pammo);
if(pwep != pweaponid)
{
GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]);
}
}
ResetPlayerGuns(playerid);
for(new slot = 0; slot != 12; slot++)
{
GivePlayerGun(playerid, plyWeapons[slot], plyAmmo[slot]);
}
}