This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Script For Swarm zombie class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoomSlayers
New Member
Join Date: Jun 2024
Location: Plastine
Old 06-11-2024 , 04:51   Script For Swarm zombie class
Reply With Quote #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
}
DoomSlayers is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode