Post by Gaspatcho on May 24, 2020 18:39:26 GMT
Requirements: zm_vip 1.7.2
VIP Free Points - ZP 5.0 -> Works only for ZP 5.0, see the cvars to configure it to your needs
VIP Free Points - ZP 4.3 -> Works only for ZP 4.3, see the cvars to configure it to your needs
Fast Zombie - ZP 5.0 -> Works only for ZP 5.0, see the cvars to configure it to your needs
VIP Free Points - ZP 5.0 -> Works only for ZP 5.0, see the cvars to configure it to your needs
VIP Free Points - ZP 4.3 -> Works only for ZP 4.3, see the cvars to configure it to your needs
zpv_vip_points "Number" -> this is the amount of ammopacks that a player gets once he is VIP
zpv_points_reload "X" -> this is the delay between each reload in seconds, the plugin reloads the player points each X seconds
zpv_points_reload "X" -> this is the delay between each reload in seconds, the plugin reloads the player points each X seconds
Fast Zombie - ZP 5.0 -> Works only for ZP 5.0, see the cvars to configure it to your needs
This class has a speed ability, you can use it by pressing G
zp_speed_cooldown "Number" -> This is the ability cooldown in seconds
zp_speed_duration "Number" -> This is the Duration in seconds
zp_speed_amount "Number" -> This is speed multiply that the player gets. 1.3 by default
zp_speed_cooldown "Number" -> This is the ability cooldown in seconds
zp_speed_duration "Number" -> This is the Duration in seconds
zp_speed_amount "Number" -> This is speed multiply that the player gets. 1.3 by default
/* VIP Free Points [ZP 5.0]*/
#include <amxmodx>
#include <amxmisc>
#include <zp50_ammopacks>
#include <zmvip>
#define PLUGIN "[ZP] VIP AmmoPacks"
#define VERSION "1.0"
#define AUTHOR "Lord.Death."
new cvar_frozenpoints, cvar_delay
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar_frozenpoints = register_cvar("zpv_vip_points","5000")
cvar_delay = register_cvar("zpv_points_reload", "3")
}
public client_putinserver(id)
set_task(get_pcvar_float(cvar_delay), "Test", id, _, _, "b")
public Test(id)
{
if(!is_user_connected(id))
return;
if(!(zv_get_user_flags(id) & ZV_MAIN))
return;
new Points = zp_ammopacks_get(id)
if(Points != get_pcvar_num(cvar_frozenpoints))
zp_ammopacks_set(id, get_pcvar_num(cvar_frozenpoints))
}
/* VIP Free Points [ZP 4.3] */
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <zmvip>
#define PLUGIN "[ZP] VIP AmmoPacks"
#define VERSION "1.0"
#define AUTHOR "Lord.Death."
new cvar_frozenpoints, cvar_delay
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
cvar_frozenpoints = register_cvar("zpv_vip_points","5000")
cvar_delay = register_cvar("zpv_points_reload", "3")
}
public client_putinserver(id)
set_task(get_pcvar_float(cvar_delay), "Test", id, _, _, "b")
public Test(id)
{
if(!is_user_connected(id))
return;
if(!(zv_get_user_flags(id) & ZV_MAIN))
return;
new Points = zp_get_user_ammo_packs(id)
if(Points != get_pcvar_num(cvar_frozenpoints))
zp_set_user_ammo_packs(id, get_pcvar_num(cvar_frozenpoints))
}
/*================================================================================
---------------------------------
-*- [ZP] Class: Zombie: Light -*-
---------------------------------
This plugin is part of Zombie Plague Mod and is distributed under the
terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
================================================================================*/
#include <amxmodx>
#include <zp50_class_zombie>
//#define LIBRARY_NEMESIS "zp50_class_nemesis"
//#include <zp50_class_nemesis>
//#define LIBRARY_DRAGON "zp50_class_dragon"
//#include <zp50_class_dragon>
//#include <zp50_class_nightcrawler>
#include <cs_maxspeed_api>
#include <colorchat>
//native zp_class_predator_get(id)
// Light Zombie Attributes
new const zombieclass3_name[] = "Fast Zombie"
new const zombieclass3_info[] = "Speed [G]"
new const zombieclass3_models[][] = { "zombie_source" }
new const zombieclass3_clawmodels[][] = { "models/zombie_plague/v_knife_zombie.mdl" }
const zombieclass3_health = 2000
const Float:zombieclass3_speed = 1.0
const Float:zombieclass3_gravity = 0.50
const Float:zombieclass3_knockback = 0.50
new g_ZombieClassID, Float:pCooldown[33], cvar_cooldown, cvar_duration, cvar_speed
new bool:IsActive[33]
public plugin_init()
{
register_clcmd("drop", "Speed")
register_concmd("drop", "Speed")
cvar_cooldown = register_cvar("zp_speed_cooldown", "20")
cvar_duration = register_cvar("zp_speed_duration", "5")
cvar_speed = register_cvar("zp_speed_amount", "1.35")
}
public plugin_precache()
{
register_plugin("[ZP] Class: Zombie: Fast", ZP_VERSION_STRING, "ZP Dev Team")
new index
g_ZombieClassID = zp_class_zombie_register(zombieclass3_name, zombieclass3_info, zombieclass3_health, zombieclass3_speed, zombieclass3_gravity)
zp_class_zombie_register_kb(g_ZombieClassID, zombieclass3_knockback)
for (index = 0; index < sizeof zombieclass3_models; index++)
zp_class_zombie_register_model(g_ZombieClassID, zombieclass3_models[index])
for (index = 0; index < sizeof zombieclass3_clawmodels; index++)
zp_class_zombie_register_claw(g_ZombieClassID, zombieclass3_clawmodels[index])
}
public StopSpeed(id)
{
if(!is_user_connected(id))
return
IsActive[id] = false
if(is_user_alive(id))
cs_set_player_maxspeed_auto(id, zombieclass3_speed)
ColorChat(id, GREEN,"[DS]^3 You've ran out of speed")
}
public Speed(id)
{
if(!is_user_connected(id))
return;
if(!is_user_alive(id))
return;
// if ((LibraryExists(LIBRARY_NEMESIS, LibType_Library) && zp_class_nemesis_get(id)) || (LibraryExists(LIBRARY_DRAGON, LibType_Library) && zp_class_dragon_get(id)) || zp_class_predator_get(id))
// return;
if(!zp_core_is_zombie(id))
return;
if(IsActive[id])
return;
static Float:gTime, Float:cTime, Float:dTime, Float:pSpeed
gTime = get_gametime()
cTime = get_pcvar_float(cvar_cooldown)
dTime = get_pcvar_float(cvar_duration)
pSpeed = get_pcvar_float(cvar_speed)
if(zp_class_zombie_get_current(id) == g_ZombieClassID)
{
if(gTime - cTime >= pCooldown[id])
{
cs_set_player_maxspeed_auto(id, pSpeed)
ColorChat(id,GREEN,"[DS]^3 You've activated your speed ability!")
set_task(dTime, "StopSpeed", id)
pCooldown[id] = gTime
IsActive[id] = true
}
}
}