Quote:
Originally Posted by whitedragon
Quote:
Originally Posted by MadeMan
You can use this function
pawn Код:
stock RemovePlayerWeapon(playerid, weaponid) { new plyWeapons[12]; new plyAmmo[12]; for(new slot = 0; slot != 12; slot++) { GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot]); } ResetPlayerWeapons(playerid); for(new slot = 0; slot != 12; slot++) { if(plyAmmo[slot] != 0 && plyWeapons[slot] != weaponid) { GivePlayerWeapon(playerid, plyWeapons[slot], plyAmmo[slot]); } } return 1; }
|
Is it work with antihack?
|
I don't know which anti-hack you use?