Thread: hp problem
View Single Post
generals
Senior Member
Join Date: Aug 2018
Old 01-05-2020 , 08:36   Re: Reduced Damage
Reply With Quote #3

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(clientSDKHook_WeaponSwitchOnWeaponSwitch);
}
public 
Action:OnWeaponSwitch(clientweapon
{
    
char WeaponName[32];
    
GetEdictClassname(weaponWeaponNamesizeof(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(weaponsWeaponClasssizeof(sWeaponClass)); 
when ct attack to terror: terror not die

but when t attack to ct: ct die without hp reduction 40%

Last edited by generals; 01-05-2020 at 12:22.
generals is offline