|
AlliedModders Donor
Join Date: May 2016
Location: Brazil
|
06-08-2020
, 20:25
Re: [CS:GO] No Fall Damage (Updated: 02/16/2018)
|
#10
|
Quote:
Originally Posted by SSheriFF
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;
}
|
Thanks for sharing, I'll be testing. Any problems return contact.
|
|
|
|