Quote:
Originally Posted by Papero
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(client, SDKHook_WeaponCanUse, WeaponCanUseGunsRound);
SDKHook(client, SDKHook_WeaponCanSwitchTo, WeaponCanUseGunsRound);
public Action WeaponCanUseGunsRound(int client, int weapon)
{
if (RR || SGR || SSG != 1)return Plugin_Continue;
char sWeapon[32];
GetEdictClassname(weapon, sWeapon, sizeof(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