12.05.2012, 07:24
(
Последний раз редактировалось [ABK]Antonio; 15.05.2012 в 23:20.
)
Quote:
That would indeed just set them to hold fists.
You can always just loop through all the weapon data, remove all the weapons, and give all the weapons excluding the desired weapon |
pawn Код:
stock RemoveWeapon(playerid, weaponid) SetPlayerAmmo(playerid, weaponid, 0);
pawn Код:
stock SetPlayerAmmo(playerid, weaponid, ammo)
{
new weapon[13][2];
for(new i=0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapon[i][0], weapon[i][1]);
if(weapon[i][0] == weaponid)
{
GivePlayerWeapon(playerid, weaponid, -(weapon[i][1]*2));
break;
}
}
GivePlayerWeapon(playerid, weaponid, ammo);
return 1;
}