General Admin No Fall

Gameplay Addons
Post Reply
User avatar
lizoumapper
Senior Member
Senior Member
Morocco
Posts: 162
Joined: 1 Year Ago
Location: Morocco
Has thanked: 9 times
Been thanked: 9 times
Age: 17
Contact:

Admin No Fall

#1

Post by lizoumapper » 7 Months Ago

Admin No Fall
>>> Description :
This Plugin Give Admin No Fall Damage.

>>> Cvar :
ze_admin_fall 0 > 0 = No Fall Damage | 1 = Fall Damage

>>> Info :
Only Access Admin Kick.

Code: Select all

#include <zombie_escape>
#include <hlsdk_const> 

#define ADMIN_ACCESS ADMIN_KICK

// Variables 
new Cvar_NoFall_Admin

public plugin_init()
{
	register_plugin("[ZE] Admin Fall", "0.1", "LiZou MaPpeR")
	
	// Event TakeDamage
	RegisterHam(Ham_TakeDamage, "player", "TakeDamage")
	
	// Cvar 
	Cvar_NoFall_Admin = register_cvar("ze_admin_fall", "0")
    
}

public TakeDamage(iVictim, iInfector, iAttacker, Float:damage, damagebits ) 
{
	if(get_pcvar_num(Cvar_NoFall_Admin) == 0)
	{
		if(damagebits == DMG_FALL && get_user_flags(iVictim) & ADMIN_ACCESS)
		{
			return HAM_SUPERCEDE; 
		}
	}
	return HAM_IGNORED;
}
:)
This is my blog : http://lizoumappercs.ga
GoldSource Engine :D

User avatar
Muhammet20
Veteran Member
Veteran Member
Syria
Posts: 408
Joined: 1 Year Ago
Location: Turkey
Has thanked: 36 times
Been thanked: 5 times
Age: 15
Contact:

#2

Post by Muhammet20 » 7 Months Ago

This is not related to ZE as i think :?
These users thanked the author Muhammet20 for the post:
lizoumapper (7 Months Ago)
[Syrian love Palestine and live in Turkey]
[Not interested in CS/Pawn anymore]
[Learning C# coding language and Unity engine]

User avatar
lizoumapper
Senior Member
Senior Member
Morocco
Posts: 162
Joined: 1 Year Ago
Location: Morocco
Has thanked: 9 times
Been thanked: 9 times
Age: 17
Contact:

#3

Post by lizoumapper » 7 Months Ago

Muhammet20 wrote:
7 Months Ago
This is not related to ZE as i think :?
-_-
There More Server Zombie Escape Use This Plugin :)
This is my blog : http://lizoumappercs.ga
GoldSource Engine :D

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest