24.09.2011, 15:03
pawn Код:
stock RemovePlayerWeapon(playerid, weaponid)
{
new weaponsArray[13][2]; // 1 Model, 2 Ammo.
for(new i = 0; != 13; ++i)
{
GetPlayerWeaponData(playerid, i, weaponsArray[i][0], weaponsArray[i][1]);
}
ResetPlayerWeapons(playerid);
for(new i = 0; i != 13; ++i)
{
if (weaponsArray[i][0] != weaponid)
GivePlayerWeapon(playerid, weaponsArray[i][0], weaponsArray[i][1]);
}
}