Here is the code...
Code:
/*
/
/
/ [ZP] Zombie Long Jump
/ (new zombie class)
/
/ by The_Thing
/
/
/ Description :
/
/ So what can I say? This is usual Zombie class but this zombie will have long jump already. (without delay)
/
/
/
/
/
/ Changelog :
/
/ 04/10/2008 - v1.0 - First release
/ 05/10/2008 - v1.1 - fixed bug that cause long jump to all zombie classes...
/ 10/10/2008 - v1.2 - fixed again this bug from v1.1
/
/
/
/
/
/
*/
#include <amxmodx>
#include <fun>
#include <zombieplague>
new const zclass_name6[] = { "Long Jump Zombie" }
new const zclass_info6[] = { "HP+ Speed+ Gravity++ Knockback++" }
new const zclass_model6[] = { "zombie_source" }
new const zclass_clawmodel6[] = {"v_knife_zombie.mdl" }
const zclass_health6 = 2200
const zclass_speed6 = 230
const Float:zclass_gravity6 = 0.5
const Float:zclass_knockback6 = 1.7
new g_zclass_LongJump6
public plugin_precache()
{
register_plugin("[ZP] Zombie Long Jump", "1.2", "The_Thing")
g_zclass_LongJump6 = zp_register_zombie_class(zclass_name6, zclass_info6, zclass_model6, zclass_clawmodel6, zclass_health6, zclass_speed6, zclass_gravity6, zclass_knockback6)
}
public zp_user_infected_post(player, infector)
{
if(zp_get_user_zombie_class(player) == g_zclass_LongJump6)
{
give_item(player, "item_longjump")
}
client_print(player, print_chat,"")
}