08.11.2015, 17:52
Criei essa funзгo a um tempo atrбs...veja se й ъtil para vocк!
pawn Code:
RemovePlayerWeapon(playerid, weaponid)
{
static weaponData[13][2], i;
for(i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weaponData[i][0], weaponData[i][1]);
}
ResetPlayerWeapons(playerid);
for(i = 0; i < 13; i++)
{
if(weaponData[i][0] != 0 && weaponData[i][0] != weaponid)
{
GivePlayerWeapon(playerid, weaponData[i][0], weaponData[i][1]);
}
}
}