23.07.2009, 12:31
Код:
forward weaponhack(); public weaponhack() { new weap, ammo; for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerWeaponData(i, 7, weap, ammo); if(ammo > 1 && weap == 9) { SendClientMessage(i, 0xFFFFFFAA, "You have been banned for using a weapon hack."); Ban(i); } else if(ammo > 1 && weap == 35 || weap == 36 || weap == 37 || weap == 38 || weap == 39 || weap == 40 || weap == 43 || weap == 44 || weap == 45) { SendClientMessage(i, 0xFFFFFFAA, "You have been banned for using a weapon hack."); Ban(i); } } } return 1; }