General Admin No Fall

Gameplay Addons
Post Reply
User avatar
lizoumapper
Senior Member
Senior Member
Morocco
Posts: 150
Joined: 8 Months Ago
Location: Morocco
Has thanked: 3 times
Been thanked: 7 times
Age: 17
Contact:

Admin No Fall

#1

Post by lizoumapper » 4 Weeks 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;
}
:)
I Love Learn Languages Programmations

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

#2

Post by Muhammet20 » 4 Weeks Ago

This is not related to ZE as i think :?
These users thanked the author Muhammet20 for the post:
lizoumapper (4 Weeks Ago)
.::Kaya Gaming || Never Give Up || Zombie Escape::. [Server is Under The Work]
https://kaya-gaming.ga/

I just believe in two things, First thing is who i see in the mirror, second thing is who i don't see in the sky.

User avatar
lizoumapper
Senior Member
Senior Member
Morocco
Posts: 150
Joined: 8 Months Ago
Location: Morocco
Has thanked: 3 times
Been thanked: 7 times
Age: 17
Contact:

#3

Post by lizoumapper » 4 Weeks Ago

Muhammet20 wrote:
4 Weeks Ago
This is not related to ZE as i think :?
-_-
There More Server Zombie Escape Use This Plugin :)
I Love Learn Languages Programmations

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest