I'd use:
PHP Code:
bool InMarketAir[MAXPLAYERS+1];
public void OnPluginStart()
{
HookEvent("rocket_jump", RocketJumped, EventHookMode_Pre);
HookEvent("rocket_jump_landed", RocketJumpLanded, EventHookMode_Post);
}
...
public Action RocketJumped(Handle event, const char[] name, bool dontBroadcast)
{
InMarketAir[GetClientOfUserId(GetEventInt(event, "userid"))] = true;
return Plugin_Continue;
}
public Action RocketJumpLanded(Handle event, const char[] name, bool dontBroadcast)
{
InMarketAir[GetClientOfUserId(GetEventInt(event, "userid"))] = false;
return Plugin_Continue;
}
On your SDK TakeDamage event, use
if (InMarketAir[attacker]) with your m_iItemDefinitionIndex checks.
__________________