View Single Post
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 06-08-2020 , 15:59   Re: [CS:GO] No Fall Damage (Updated: 02/16/2018)
Reply With Quote #9

Quote:
Originally Posted by paulo_crash View Post
Someone? Could leave this option only for players with privileges?
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;

__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:

Last edited by SSheriFF; 06-08-2020 at 15:59.
SSheriFF is offline