Quote:
Originally Posted by paulo_crash
Someone? Could leave this option only for players with privileges?
|
Change this:
PHP Code:
public Action OnTakeDamage(int client, int &attacker, int &inflictor, float &damage, int &damagetype)
{
if (damagetype & DMG_FALL)
return Plugin_Handled;
return Plugin_Continue;
}
To this:
PHP Code:
public Action OnTakeDamage(int client, int &attacker, int &inflictor, float &damage, int &damagetype)
{
if (damagetype & DMG_FALL &&CheckCommandAccess(client,"",ADMFLAG_RESERVATION))//edit "ADMFLAG_RESERVATION" to your desired flag.
return Plugin_Handled;
return Plugin_Continue;
}
__________________