View Single Post
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 06-08-2020 , 20:25   Re: [CS:GO] No Fall Damage (Updated: 02/16/2018)
Reply With Quote #10

Quote:
Originally Posted by SSheriFF View Post
Change this:
PHP Code:
public Action OnTakeDamage(int clientint &attackerint &inflictorfloat &damageint &damagetype
{
    if (
damagetype DMG_FALL)
        return 
Plugin_Handled;
    
    return 
Plugin_Continue;

To this:
PHP Code:
public Action OnTakeDamage(int clientint &attackerint &inflictorfloat &damageint &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.
paulo_crash is offline