I ran across the issue that another plugin / round (Not a no-scope round) using the SSG08 and the AWP and that it would not let me zoom in during those rounds.
I might have overlooked it but could not find something that checked if the round was a no-scope round before applying the no-scope mechanic
I added the following:
- Declared an int at line 19
- Build an if statement under the "if(IsPlayerAlive(client))" at line 57
Code:
if(IsClientInGame(client) && (!IsFakeClient(client))){
if(Multi1v1_GetCurrentRoundType(Multi1v1_GetArenaNumber(client)) == gh_RoundType){
So it now looks like this:
Code:
if(IsPlayerAlive(client))
{
if(IsClientInGame(client) && (!IsFakeClient(client)))
{
if(Multi1v1_GetCurrentRoundType(Multi1v1_GetArenaNumber(client)) == gh_RoundType)
{
int weapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");
if(!IsValidEdict(weapon) || !IsValidEntity(weapon))
return Plugin_Continue;
char item[64];
GetEdictClassname(weapon, item, sizeof(item));
if(g_Noscope[client] && StrEqual(item, "weapon_awp") || StrEqual(item, "weapon_ssg08"))
{
SetEntDataFloat(weapon, m_flNextSecondaryAttack, GetGameTime() + 9999.9);
}
}
}
}
If I missed something please do let me know!
__________________