Raised This Month: $51 Target: $400
 12% 

Help me with this zombie class


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FitnessMan
Junior Member
Join Date: Oct 2014
Old 04-22-2015 , 17:06   Help me with this zombie class
Reply With Quote #1

Make me in this zombie class , sound for knife,only for this class.Take help from https://forums.alliedmods.net/showthread.php?t=162726

Code:
#include <amxmodx> 
 #include <hamsandwich> 
 #include <basebuilder> 

 new witch_dmg; 
 new mp; 
 new g_zclass14; 

 new const zclass14_name[] = { "Strong Zombie" } 
 new const zclass14_info[] = { "\y[\rDamage\y] \yx2" } 
 new const zclass14_model[] = { "bb_zmstrong" } 
 new const zclass14_clawmodel[] = { "v_zmstrong" } 
 const zclass14_health = 4000 
 const zclass14_speed = 360 
 const Float:zclass14_gravity = 0.7 
 const Float:zclass14_knockback = 0.9 
 const zclass_adminflags = ADMIN_RESERVATION 

 public plugin_init() 
 { 
    RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage"); 
    witch_dmg = register_cvar("zp_witch_damage", "2"); 
    mp = get_maxplayers(); 
 } 
 public plugin_precache() 
 { 
    register_plugin("[BB] Default Zombie Classes", "6.5", "Tirant") 
    g_zclass14 = zp_register_zombie_class(zclass14_name, zclass14_info, zclass14_model, zclass14_clawmodel, zclass14_health, zclass14_speed, zclass14_gravity,0.0, zclass_adminflags); 
 } 

 public fw_TakeDamage(victim, inflictor, attacker, Float:damage, dmgbits) 
 { 
    if(attacker < 1 || attacker > mp) 
       return HAM_IGNORED; 
    if(!is_user_alive(attacker) 
       return HAM_IGNORED; 
    if(!bb_is_user_zombie(attacker)) 
       return HAM_IGNORED; 
    if(get_user_weapon(attacker) != CSW_KNIFE) 
       return HAM_IGNORED; 
    if(bb_get_user_zombie_class(attacker) != g_zclass14) 
       return HAM_IGNORED; 
     
    SetHamParamFloat(4, damage*get_pcvar_float(witch_dmg)); 
    return HAM_IGNORED; 
 }
FitnessMan is offline
 



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 10:37.


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