Trying to make a rage not work in midair.
PHP Code:
public FF2_PreAbility(index, const String:plugin_name[], const String:ability_name[], slot, status, &enabled)
{
if(plugin_name[0])
{
if(strcmp(this_plugin_name, plugin_name))
{
return;
}
}
if (!strcmp(ability_name, "rage_gugnir"))
{
new iBoss = GetClientOfUserId(FF2_GetBossUserId(index));
if (!g_bHasGugnir[iBoss] || !IsClientInGame(iBoss) || !IsPlayerAlive(iBoss) || !(GetEntityFlags(iBoss) & FL_ONGROUND))
{
enabled = false;
return;
}
}
return;
}
I set enabled = false, but you can still mid-air rage and lose all your rage.
__________________