Author
|
Message
|
New Member
Join Date: Jun 2024
Location: Plastine
|
06-11-2024
, 04:51
Script For Swarm zombie class
|
#1
|
i have a code for zombie swarm class that can kill human but the script
the problem is the class damage humans but the damage is 0 i want damage like normal humans knife
here is the script
#include <amxmodx>
#include <zombieplague>
// Zombie Attributes
new const zclass_name[] = "Swarm Zombie" // name
new const zclass_info[] = "You can only Kill/Hurt" // description
new const zclass_model[] = "zombie_source" // model
new const zclass_clawmodel[] = "v_knife_zombie.mdl" // claw model
const zclass_health = 1800 // health
const zclass_speed = 190 // speed
const Float:zclass_gravity = 1.0 // gravity
const Float:zclass_knockback = 1.0 // knockback
// Class IDs
new g_iZClassID
// Plugin Precache
public plugin_precache()
{
register_plugin("[ZP] Zombie Class: Swarm Zombie", "0.1", "meTaLiCroSS")
// Register the new class and store ID for reference
g_iZClassID = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}
// User Infected attempt forward
public zp_user_infect_attempt(id, infector, nemesis)
{
// No attacker
if(!infector)
return PLUGIN_CONTINUE
// Check Swarm Zombie class and block infection
if(zp_get_user_zombie_class(infector) == g_iZClassID)
return ZP_PLUGIN_HANDLED
return PLUGIN_CONTINUE
}
|
|
|
|