View Single Post
BassPower
Member
Join Date: Mar 2011
Location: Lithuania
Old 02-22-2018 , 10:36   Re: csgo best way use
Reply With Quote #3

Quote:
Originally Posted by Papero View Post
Tell us more info (like posting your whole code), we even dont know what are you trying to achieve...
i can post all code:

PHP Code:
int RR = -1;
int SRG = -1;
int SSG = -1;

SDKHook(clientSDKHook_WeaponCanUseWeaponCanUseGunsRound);
SDKHook(clientSDKHook_WeaponCanSwitchToWeaponCanUseGunsRound);

public 
Action WeaponCanUseGunsRound(int clientint weapon)
{
if (
RR || SGR || SSG != 1)return Plugin_Continue;
char sWeapon[32];
GetEdictClassname(weaponsWeaponsizeof(sWeapon));
if (
StrEqual(sWeapon"weapon_deagle") || StrEqual(sWeapon"weapon_awp"))
{
return 
Plugin_Handled;
}
return 
Plugin_Changed;

here is function to use weapons like in RR = Rifle Round - Handled weapons awp and dgl and if SSG = Scout round do same, just want know how fix because now not block weapons problem is if (RR || SGR || SSG != 1)return Plugin_Continue; if i write just if (RR != 1)return Plugin_Continue; is ok how add more in 1 function
BassPower is offline