#include #include #include public Plugin:myinfo = { name = "Game without knife", author = "Kowalsky", description = "Block knife damage", version = "1.0", url = "http://1shot1kill.pl" } public OnPluginStart() { for (new client = 1; client <= MaxClients; client++) { if (IsClientInGame(client)) { SDKHook(client, SDKHook_OnTakeDamage, TakeDamageHook); } } } public OnClientPutInServer(client) { SDKHook(client, SDKHook_OnTakeDamage, TakeDamageHook); } public Action:TakeDamageHook(client, &attacker, &inflictor, &Float:damage, &damagetype) { if ( (client>=1) && (client<=MaxClients) && (attacker>=1) && (attacker<=MaxClients) && (attacker==inflictor) ) { decl String:WeaponName[64]; GetClientWeapon(attacker, WeaponName, sizeof(WeaponName)); if (StrEqual(WeaponName, "weapon_knife", false)) { damage *= 0; return Plugin_Stop; } } return Plugin_Continue; }