hi ..
Yes, you know exactly what I mean
compile error = i added :
PHP Code:
new bool:iWeapon;
but damage don't reduced.. when i switch weapon to knife
Can't use this?
PHP Code:
public OnClientPutInServer(int client)
{
SDKHook(client, SDKHook_WeaponSwitch, OnWeaponSwitch);
}
public Action:OnWeaponSwitch(client, weapon)
{
char WeaponName[32];
GetEdictClassname(weapon, WeaponName, sizeof(WeaponName));
if(!StrEqual(WeaponName, "weapon_knife"))
{
//Some Codes
}
}
Edit:
i removed bool and fix this line But it didn't work again :
PHP Code:
GetEntityClassname(weapon, sWeaponClass, sizeof(sWeaponClass));
when ct attack to terror: terror not die
but when t attack to ct: ct die without hp reduction 40%