[rezolvat]Cerere modificare plugin

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
ang
Membru, skill +1
Membru, skill +1
Posts: 169
Joined: 14 Jan 2012, 18:39
Detinator Steam: Da
Detinator server CS: Da
Location: Africa
Has thanked: 37 times

15 Aug 2017, 11:34

Salutare , am clasa de zombie hunter. are o abilitate , cand apesi ctrl+e face un salt mare. problema e ca atunci cand iti alegi aceasta clasa , poti folosi abilitatea si cand esti om / sniper /survivor... vreau sa poti folosi abilitatea doar cand esti ZM . Multumesc
| Afiseaza codul
/*================================================================================

-----------------------------------
-*- [ZP] Hunter L4D -*-
-----------------------------------

~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~

This zombie has long jumps as well as the popular game L4D2
Well, this time the skill is good and better,
to jump you have to press Ctrl + E and look where you want to jump.

================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

/*================================================================================
[Customizations]
=================================================================================*/

// Zombie Attributes
new const zclass_name[] = "Diavolar Hunter"
new const zclass_info[] = "Poti sari foarte tare"
new const zclass_model[] = "hunter_v2_ady"
new const zclass_clawmodel[] = "v_hunterv2_ady.mdl"

const zclass_health = 710
const zclass_speed = 290

const Float:zclass_gravity = 0.6
const Float:zclass_knockback = 1.0

new const leap_sound[4][] = { "left_4_dead2/hunter_jump.wav", "left_4_dead2/hunter_jump1.wav", "left_4_dead2/hunter_jump2.wav", "left_4_dead2/hunter_jump3.wav" }

/*================================================================================
Customization ends here!
Any edits will be your responsibility
=================================================================================*/

// Variables
new g_hunter

// Arrays
new Float:g_lastleaptime[33]

// Cvar pointers
new cvar_force, cvar_cooldown

// Plugin info.
#define PLUG_VERSION "0.2"
#define PLUG_AUTHOR "aNg*@dy"

/*================================================================================
[Init, CFG and Precache]
=================================================================================*/

public plugin_precache()
{
	// Register the new class and store ID for reference
	g_hunter = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
	
	// Sound
	static i
	for(i = 0; i < sizeof leap_sound; i++)
		precache_sound(leap_sound)
}

public plugin_init() 
{
	// Plugin Info
	register_plugin("[ZP] Clasa Zombie: Hunter", PLUG_VERSION, PLUG_AUTHOR)
	
	// Forward
	register_forward(FM_PlayerPreThink, "fw_PlayerPreThink") 
	
	// Cvars
	cvar_force = register_cvar("zp_hunter_jump_force", "890") 
	cvar_cooldown = register_cvar("zp_hunter_jump_cooldown", "1.0")
	
	static szCvar[30]
	formatex(szCvar, charsmax(szCvar), "v%s by %s", PLUG_VERSION, PLUG_AUTHOR)
	register_cvar("zp_zclass_hunterl4d2", szCvar, FCVAR_SERVER|FCVAR_SPONLY)
}

/*================================================================================
[Zombie Plague Forwards]
=================================================================================*/

public zp_user_infected_post(id, infector)
{
	// It's the selected zombie class
	if(zp_get_user_zombie_class(id) == g_hunter)
	{
		if(zp_get_user_nemesis(id))
			return
		
		// Message
		client_print(id, print_chat, "[Zm.Diavola.Ro] Pentru a sari foarte tare apasa - ^"CTRL + E^"")
	}
}

/*================================================================================
[Main Forwards]
=================================================================================*/

public fw_PlayerPreThink(id)
{
	if(!is_user_alive(id))
		return
		
	if(zp_get_user_nemesis(id))
		return
	
	if(is_user_connected(id))
	{
		if (allowed_hunterjump(id))
		{
			static Float:velocity[3]
			velocity_by_aim(id, get_pcvar_num(cvar_force), velocity)
			set_pev(id, pev_velocity, velocity)
			
			emit_sound(id, CHAN_STREAM, leap_sound[random_num(0, sizeof leap_sound -1)], 1.0, ATTN_NORM, 0, PITCH_HIGH)
			
			// Set the current super jump time
			g_lastleaptime[id] = get_gametime()
		}
	}
}

/*================================================================================
[Internal Functions]
=================================================================================*/

allowed_hunterjump(id)
{    
	if (!zp_get_user_zombie(id) && zp_get_user_nemesis(id))
		return false
	
	if (zp_get_user_zombie_class(id) != g_hunter)
		return false
	
	if (!((pev(id, pev_flags) & FL_ONGROUND) && (pev(id, pev_flags) & FL_DUCKING)))
		return false
	
	static buttons
	buttons = pev(id, pev_button)
	
	// Not doing a longjump (added bot support)
	if (!(buttons & IN_USE) && !is_user_bot(id))
		return false
	
	static Float:cooldown
	cooldown = get_pcvar_float(cvar_cooldown)
	
	if (get_gametime() - g_lastleaptime[id] < cooldown)
		return false
	
	return true
}
Last edited by ang on 21 Aug 2017, 13:39, edited 1 time in total.
<a href="https://www.gametracker.com/server_info ... 3.4:27015/" target="_blank"><img src="http://cache.gametracker.com/server_inf ... 2E3226.png" border="0" width="350" height="20" alt=""/></a>
RoyalServer
*Or!g!naL*
Fost moderator
Fost moderator
Posts: 1367
Joined: 16 Feb 2014, 16:28
Detinator Steam: Nu
CS Status: N-avem!
Detinator server CS: Zm.Darkcs.ro
Reputatie: Fost moderator ajutator
Has thanked: 3 times
Been thanked: 1 time

15 Aug 2017, 11:52

Mutat la modificari pluginuri
| Afiseaza codul
/*================================================================================

-----------------------------------
-*- [ZP] Hunter L4D -*-
-----------------------------------

~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~

This zombie has long jumps as well as the popular game L4D2
Well, this time the skill is good and better,
to jump you have to press Ctrl + E and look where you want to jump.

================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

/*================================================================================
[Customizations]
=================================================================================*/

// Zombie Attributes
new const zclass_name[] = "Diavolar Hunter"
new const zclass_info[] = "Poti sari foarte tare"
new const zclass_model[] = "hunter_v2_ady"
new const zclass_clawmodel[] = "v_hunterv2_ady.mdl"

const zclass_health = 710
const zclass_speed = 290

const Float:zclass_gravity = 0.6
const Float:zclass_knockback = 1.0

new const leap_sound[4][] = { "left_4_dead2/hunter_jump.wav", "left_4_dead2/hunter_jump1.wav", "left_4_dead2/hunter_jump2.wav", "left_4_dead2/hunter_jump3.wav" }

/*================================================================================
Customization ends here!
Any edits will be your responsibility
=================================================================================*/

// Variables
new g_hunter

// Arrays
new Float:g_lastleaptime[33]

// Cvar pointers
new cvar_force, cvar_cooldown

// Plugin info.
#define PLUG_VERSION "0.2"
#define PLUG_AUTHOR "aNg*@dy"

/*================================================================================
[Init, CFG and Precache]
=================================================================================*/

public plugin_precache()
{
	// Register the new class and store ID for reference
	g_hunter = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
	
	// Sound
	static i
	for(i = 0; i < sizeof leap_sound; i++)
		precache_sound(leap_sound)
}

public plugin_init() 
{
	// Plugin Info
	register_plugin("[ZP] Clasa Zombie: Hunter", PLUG_VERSION, PLUG_AUTHOR)
	
	// Forward
	register_forward(FM_PlayerPreThink, "fw_PlayerPreThink") 
	
	// Cvars
	cvar_force = register_cvar("zp_hunter_jump_force", "890") 
	cvar_cooldown = register_cvar("zp_hunter_jump_cooldown", "1.0")
	
	static szCvar[30]
	formatex(szCvar, charsmax(szCvar), "v%s by %s", PLUG_VERSION, PLUG_AUTHOR)
	register_cvar("zp_zclass_hunterl4d2", szCvar, FCVAR_SERVER|FCVAR_SPONLY)
}

/*================================================================================
[Zombie Plague Forwards]
=================================================================================*/
public zp_user_infected_post(id, infector)
{
	// It's the selected zombie class
	if(zp_get_user_zombie_class(id) == g_hunter && zp_get_user_nemesis(id))
	{
		// Message
		client_print(id, print_chat, "[Zm.Diavola.Ro] Pentru a sari foarte tare apasa - ^"CTRL + E^"")
	}
}

/*================================================================================
[Main Forwards]
=================================================================================*/

public fw_PlayerPreThink(id)
{
	if(!is_user_alive(id) || zp_get_user_nemesis(id))
		return
	
		if (allowed_hunterjump(id))
		{
			static Float:velocity[3]
			velocity_by_aim(id, get_pcvar_num(cvar_force), velocity)
			set_pev(id, pev_velocity, velocity)
			
			emit_sound(id, CHAN_STREAM, leap_sound[random_num(0, sizeof leap_sound -1)], 1.0, ATTN_NORM, 0, PITCH_HIGH)
			
			// Set the current super jump time
			g_lastleaptime[id] = get_gametime()
		}
}

/*================================================================================
[Internal Functions]
=================================================================================*/

allowed_hunterjump(id)
{    
	if (!zp_get_user_zombie(id) && zp_get_user_nemesis(id))
		return false
	
	if (zp_get_user_zombie_class(id) != g_hunter)
		return false
	
	if (!((pev(id, pev_flags) & FL_ONGROUND) && (pev(id, pev_flags) & FL_DUCKING)))
		return false
	
	static buttons
	buttons = pev(id, pev_button)
	
	// Not doing a longjump (added bot support)
	if (!(buttons & IN_USE) && !is_user_bot(id))
		return false
	
	static Float:cooldown
	cooldown = get_pcvar_float(cvar_cooldown)
	
	if (get_gametime() - g_lastleaptime[id] < cooldown)
		return false
	
	return true
}

imi spui daca functioneaza
Image
ang
Membru, skill +1
Membru, skill +1
Posts: 169
Joined: 14 Jan 2012, 18:39
Detinator Steam: Da
Detinator server CS: Da
Location: Africa
Has thanked: 37 times

15 Aug 2017, 14:43

nu merge.. tot asa
<a href="https://www.gametracker.com/server_info ... 3.4:27015/" target="_blank"><img src="http://cache.gametracker.com/server_inf ... 2E3226.png" border="0" width="350" height="20" alt=""/></a>
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5137
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

15 Aug 2017, 17:55

| Afiseaza codul
/*================================================================================

-----------------------------------
-*- [ZP] Hunter L4D -*-
-----------------------------------

~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~

This zombie has long jumps as well as the popular game L4D2
Well, this time the skill is good and better,
to jump you have to press Ctrl + E and look where you want to jump.

================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

/*================================================================================
[Customizations]
=================================================================================*/

// Zombie Attributes
new const zclass_name[] = "Diavolar Hunter"
new const zclass_info[] = "Poti sari foarte tare"
new const zclass_model[] = "hunter_v2_ady"
new const zclass_clawmodel[] = "v_hunterv2_ady.mdl"

const zclass_health = 710
const zclass_speed = 290

const Float:zclass_gravity = 0.6
const Float:zclass_knockback = 1.0

new const leap_sound[4][] = { "left_4_dead2/hunter_jump.wav", "left_4_dead2/hunter_jump1.wav", "left_4_dead2/hunter_jump2.wav", 

"left_4_dead2/hunter_jump3.wav" }

/*================================================================================
Customization ends here!
Any edits will be your responsibility
=================================================================================*/

// Variables
new g_hunter

// Arrays
new Float:g_lastleaptime[33]

// Cvar pointers
new cvar_force, cvar_cooldown

// Plugin info.
#define PLUG_VERSION "0.2"
#define PLUG_AUTHOR "aNg*@dy"

/*================================================================================
[Init, CFG and Precache]
=================================================================================*/

public plugin_precache()
{
	// Register the new class and store ID for reference
	g_hunter = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, 

zclass_speed, zclass_gravity, zclass_knockback)
	
	// Sound
	static i
	for(i = 0; i < sizeof leap_sound; i++)
		precache_sound(leap_sound)
}

public plugin_init() 
{
	// Plugin Info
	register_plugin("[ZP] Clasa Zombie: Hunter", PLUG_VERSION, PLUG_AUTHOR)
	
	// Forward
	register_forward(FM_PlayerPreThink, "fw_PlayerPreThink") 
	
	// Cvars
	cvar_force = register_cvar("zp_hunter_jump_force", "890") 
	cvar_cooldown = register_cvar("zp_hunter_jump_cooldown", "1.0")
	
	static szCvar[30]
	formatex(szCvar, charsmax(szCvar), "v%s by %s", PLUG_VERSION, PLUG_AUTHOR)
	register_cvar("zp_zclass_hunterl4d2", szCvar, FCVAR_SERVER|FCVAR_SPONLY)
}

/*================================================================================
[Zombie Plague Forwards]
=================================================================================*/

public zp_user_infected_post(id, infector)
{
	// It's the selected zombie class
	if(zp_get_user_zombie_class(id) == g_hunter)
	{
		if(zp_get_user_nemesis(id))
			return
		
		// Message
		client_print(id, print_chat, "[Zm.Diavola.Ro] Pentru a sari foarte tare apasa - ^"CTRL + E^"")
	}
}

/*================================================================================
[Main Forwards]
=================================================================================*/

public fw_PlayerPreThink(id)
{		
	if(zp_get_user_nemesis(id))
		return
	
	if(is_user_connected(id))
	{
		if (allowed_hunterjump(id))
		{
			static Float:velocity[3]
			velocity_by_aim(id, get_pcvar_num(cvar_force), velocity)
			set_pev(id, pev_velocity, velocity)
			
			emit_sound(id, CHAN_STREAM, leap_sound[random_num(0, sizeof leap_sound -1)], 1.0, ATTN_NORM, 0, 

PITCH_HIGH)
			
			// Set the current super jump time
			g_lastleaptime[id] = get_gametime()
		}
	}
}

/*================================================================================
[Internal Functions]
=================================================================================*/

allowed_hunterjump(id)
{    
	if (!zp_get_user_zombie(id) && zp_get_user_nemesis(id))
		return false
	
	if (zp_get_user_zombie_class(id) != g_hunter)
		return false
	
	if (!((pev(id, pev_flags) & FL_ONGROUND) && (pev(id, pev_flags) & FL_DUCKING)))
		return false
	
	static buttons
	buttons = pev(id, pev_button)
	
	// Not doing a longjump (added bot support)
	if (!(buttons & IN_USE) && !is_user_bot(id))
		return false
	
	static Float:cooldown
	cooldown = get_pcvar_float(cvar_cooldown)
	
	if (get_gametime() - g_lastleaptime[id] < cooldown)
		return false
	
	return true
}
ang
Membru, skill +1
Membru, skill +1
Posts: 169
Joined: 14 Jan 2012, 18:39
Detinator Steam: Da
Detinator server CS: Da
Location: Africa
Has thanked: 37 times

17 Aug 2017, 02:09

tot asa face :|
<a href="https://www.gametracker.com/server_info ... 3.4:27015/" target="_blank"><img src="http://cache.gametracker.com/server_inf ... 2E3226.png" border="0" width="350" height="20" alt=""/></a>
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5137
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

17 Aug 2017, 03:04

vezi asa
| Afiseaza codul
/*================================================================================

-----------------------------------
-*- [ZP] Hunter L4D -*-
-----------------------------------

~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~

This zombie has long jumps as well as the popular game L4D2
Well, this time the skill is good and better,
to jump you have to press Ctrl + E and look where you want to jump.

================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

/*================================================================================
[Customizations]
=================================================================================*/

// Zombie Attributes
new const zclass_name[] = "Diavolar Hunter"
new const zclass_info[] = "Poti sari foarte tare"
new const zclass_model[] = "hunter_v2_ady"
new const zclass_clawmodel[] = "v_hunterv2_ady.mdl"

const zclass_health = 710
const zclass_speed = 290

const Float:zclass_gravity = 0.6
const Float:zclass_knockback = 1.0

new const leap_sound[4][] = { "left_4_dead2/hunter_jump.wav", "left_4_dead2/hunter_jump1.wav", "left_4_dead2/hunter_jump2.wav", 

"left_4_dead2/hunter_jump3.wav" }

/*================================================================================
Customization ends here!
Any edits will be your responsibility
=================================================================================*/

// Variables
new g_hunter

// Arrays
new Float:g_lastleaptime[33]

// Cvar pointers
new cvar_force, cvar_cooldown

// Plugin info.
#define PLUG_VERSION "0.2"
#define PLUG_AUTHOR "aNg*@dy"

/*================================================================================
[Init, CFG and Precache]
=================================================================================*/

public plugin_precache()
{
	// Register the new class and store ID for reference
	g_hunter = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, 

zclass_speed, zclass_gravity, zclass_knockback)
	
	// Sound
	static i
	for(i = 0; i < sizeof leap_sound; i++)
		precache_sound(leap_sound)
}

public plugin_init() 
{
	// Plugin Info
	register_plugin("[ZP] Clasa Zombie: Hunter", PLUG_VERSION, PLUG_AUTHOR)
	
	// Forward
	register_forward(FM_PlayerPreThink, "fw_PlayerPreThink") 
	
	// Cvars
	cvar_force = register_cvar("zp_hunter_jump_force", "890") 
	cvar_cooldown = register_cvar("zp_hunter_jump_cooldown", "1.0")
	
	static szCvar[30]
	formatex(szCvar, charsmax(szCvar), "v%s by %s", PLUG_VERSION, PLUG_AUTHOR)
	register_cvar("zp_zclass_hunterl4d2", szCvar, FCVAR_SERVER|FCVAR_SPONLY)
}

/*================================================================================
[Zombie Plague Forwards]
=================================================================================*/

public zp_user_infected_post(id, infector)
{
	// It's the selected zombie class
	if(zp_get_user_zombie_class(id) == g_hunter)
	{
		if(zp_get_user_nemesis(id))
			return
		
		// Message
		client_print(id, print_chat, "[Zm.Diavola.Ro] Pentru a sari foarte tare apasa - ^"CTRL + E^"")
	}
}

/*================================================================================
[Main Forwards]
=================================================================================*/

public fw_PlayerPreThink(id)
{		
	if(zp_get_user_nemesis(id))
		return
	
		if (allowed_hunterjump(id))
		{
			static Float:velocity[3]
			velocity_by_aim(id, get_pcvar_num(cvar_force), velocity)
			set_pev(id, pev_velocity, velocity)
			
			emit_sound(id, CHAN_STREAM, leap_sound[random_num(0, sizeof leap_sound -1)], 1.0, ATTN_NORM, 0, 

PITCH_HIGH)
			
			// Set the current super jump time
			g_lastleaptime[id] = get_gametime()
		}
	}
}

/*================================================================================
[Internal Functions]
=================================================================================*/

allowed_hunterjump(id)
{    
	if (!zp_get_user_zombie(id) && zp_get_user_nemesis(id))
		return false
	
	if (zp_get_user_zombie_class(id) != g_hunter)
		return false
	
	if (!((pev(id, pev_flags) & FL_ONGROUND) && (pev(id, pev_flags) & FL_DUCKING)))
		return false
	
	static buttons
	buttons = pev(id, pev_button)
	
	// Not doing a longjump (added bot support)
	if (!(buttons & IN_USE) && !is_user_bot(id))
		return false
	
	static Float:cooldown
	cooldown = get_pcvar_float(cvar_cooldown)
	
	if (get_gametime() - g_lastleaptime[id] < cooldown)
		return false
	
	return true
}
User avatar
MzQ*
Membru eXtream
Membru eXtream
Posts: 3473
Joined: 07 Jul 2014, 18:30
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 10 times
Been thanked: 8 times
Contact:

18 Aug 2017, 01:38

| Afiseaza codul
/*================================================================================

-----------------------------------
-*- [ZP] Hunter L4D -*-
-----------------------------------

~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~

This zombie has long jumps as well as the popular game L4D2
Well, this time the skill is good and better,
to jump you have to press Ctrl + E and look where you want to jump.

================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

/*================================================================================
[Customizations]
=================================================================================*/

// Zombie Attributes
new const zclass_name[] = "Hunter L4D2"
new const zclass_info[] = "You can do super jumps"
new const zclass_model[] = "hunterv2_zp"
new const zclass_clawmodel[] = "v_knife_zombie_hunter.mdl"

const zclass_health = 710
const zclass_speed = 290

const Float:zclass_gravity = 0.6
const Float:zclass_knockback = 1.0

new const leap_sound[4][] = { "left_4_dead2/hunter_jump.wav", "left_4_dead2/hunter_jump1.wav", "left_4_dead2/hunter_jump2.wav", "left_4_dead2/hunter_jump3.wav" }

/*================================================================================
Customization ends here!
Any edits will be your responsibility
=================================================================================*/

// Variables
new g_hunter

// Arrays
new Float:g_lastleaptime[33]

// Cvar pointers
new cvar_force, cvar_cooldown

// Plugin info.
#define PLUG_VERSION "0.2"
#define PLUG_AUTHOR "DJHD!"

/*================================================================================
[Init, CFG and Precache]
=================================================================================*/

public plugin_precache()
{
    // Register the new class and store ID for reference
    g_hunter = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
    
    // Sound
    static i
    for(i = 0; i < sizeof leap_sound; i++)
        precache_sound(leap_sound)
}

public plugin_init() 
{
    // Plugin Info
    register_plugin("[ZP] Zombie Class: Hunter L4D2 Zombie", PLUG_VERSION, PLUG_AUTHOR)
    
    // Forward
    register_forward(FM_PlayerPreThink, "fw_PlayerPreThink") 
    
    // Cvars
    cvar_force = register_cvar("zp_hunter_jump_force", "890") 
    cvar_cooldown = register_cvar("zp_hunter_jump_cooldown", "1.0")
    
    static szCvar[30]
    formatex(szCvar, charsmax(szCvar), "v%s by %s", PLUG_VERSION, PLUG_AUTHOR)
    register_cvar("zp_zclass_hunterl4d2", szCvar, FCVAR_SERVER|FCVAR_SPONLY)
}

/*================================================================================
[Zombie Plague Forwards]
=================================================================================*/

public zp_user_infected_post(id, infector)
{
    // It's the selected zombie class
    if(zp_get_user_zombie_class(id) == g_hunter)
    {
        // Message
        client_print(id, print_chat, "[ZP] To use the super jump ability press - ^"CTRL + E^"")
    }
}

/*================================================================================
[Main Forwards]
=================================================================================*/

public fw_PlayerPreThink(id)
{
    if(!is_user_alive(id))
        return
        
    if(zp_get_user_nemesis(id))
        return
    
    if(is_user_connected(id) && zp_get_user_zombie(id))
    {
        if (allowed_hunterjump(id))
        {
            static Float:velocity[3]
            velocity_by_aim(id, get_pcvar_num(cvar_force), velocity)
            set_pev(id, pev_velocity, velocity)
            
            emit_sound(id, CHAN_STREAM, leap_sound[random_num(0, sizeof leap_sound -1)], 1.0, ATTN_NORM, 0, PITCH_HIGH)
            
            // Set the current super jump time
            g_lastleaptime[id] = get_gametime()
        }
    }
}

/*================================================================================
[Internal Functions]
=================================================================================*/

allowed_hunterjump(id)
{    
    if (!zp_get_user_zombie(id) && zp_get_user_nemesis(id))
        return false
    
    if (zp_get_user_zombie_class(id) != g_hunter)
        return false
    
    if (!((pev(id, pev_flags) & FL_ONGROUND) && (pev(id, pev_flags) & FL_DUCKING)))
        return false
    
    static buttons
    buttons = pev(id, pev_button)
    
    // Not doing a longjump (added bot support)
    if (!(buttons & IN_USE) && !is_user_bot(id))
        return false
    
    static Float:cooldown
    cooldown = get_pcvar_float(cvar_cooldown)
    
    if (get_gametime() - g_lastleaptime[id] < cooldown)
        return false
    
    return true
}

#define PLUG_AUTHOR "aNg*@dy" mai viseaza
Image
ang
Membru, skill +1
Membru, skill +1
Posts: 169
Joined: 14 Jan 2012, 18:39
Detinator Steam: Da
Detinator server CS: Da
Location: Africa
Has thanked: 37 times

18 Aug 2017, 17:21

merge acum ! multumesc frumos.

am modificat autorul sa deosebesc in consola cand dadeam amx plugins ..

multumesc la toti
<a href="https://www.gametracker.com/server_info ... 3.4:27015/" target="_blank"><img src="http://cache.gametracker.com/server_inf ... 2E3226.png" border="0" width="350" height="20" alt=""/></a>
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5137
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

18 Aug 2017, 17:23

a functionat cel al lui MzQ ?
*Or!g!naL*
Fost moderator
Fost moderator
Posts: 1367
Joined: 16 Feb 2014, 16:28
Detinator Steam: Nu
CS Status: N-avem!
Detinator server CS: Zm.Darkcs.ro
Reputatie: Fost moderator ajutator
Has thanked: 3 times
Been thanked: 1 time

18 Aug 2017, 17:44

A k c 3 n 7 wrote:a functionat cel al lui MzQ ?
Da, nu mi-a trecut prin cap sa pun sa vada si la conectare

Code: Select all

    if(is_user_connected(id) && zp_get_user_zombie(id))
Image
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5137
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

18 Aug 2017, 19:57

ideea este ca acolo are si is user alive si automat cine este in viata poate beneficia de ea
ang
Membru, skill +1
Membru, skill +1
Posts: 169
Joined: 14 Jan 2012, 18:39
Detinator Steam: Da
Detinator server CS: Da
Location: Africa
Has thanked: 37 times

20 Aug 2017, 16:32

a functionat doar cel a lui MzQ . Dar aveti multumesc toti !
<a href="https://www.gametracker.com/server_info ... 3.4:27015/" target="_blank"><img src="http://cache.gametracker.com/server_inf ... 2E3226.png" border="0" width="350" height="20" alt=""/></a>
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests