08.09.2010, 17:28
okey if you write "if(GetPlayerWeapon(playerid) == 38 ) that be founded in case when player hold minigun in hand. Try use this, this script scan all slots:
Код:
public WeaponProtection() { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new weapon, ammo; GetPlayerWeaponData(i, 7, weapon, ammo);//slot 7 - there's saved (RPG, rocket, minigun & flamethrower) if(weapon == 38 && ammo >= 1) { Ban(i); } } } return true; }