Raised This Month: $ Target: $400
 0% 

Suggestion / Subplugin Request Resuest zombie class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thekiller123
Member
Join Date: Dec 2012
Old 07-19-2015 , 17:05   Re: Resuest zombie class
Reply With Quote #1

I edited for heal zombie to madness zombie

Try:

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

new const zclass_name[] = "Zombie Madness"
new const zclass_info[] = "Free madness"
new const zclass_model[] = "zombie_source"
new const zclass_clawmodel[] = "v_knife_zombie.mdl"
const zclass_health 2000
const zclass_speed 275
const Float:zclass_gravity 0.8
const Float:zclass_knockback 0.5

new g_zclass_madness;
new 
Float:last_use[33];

public 
plugin_init()
{
    
register_plugin("[ZP] Zombie Class: Madness Zombie""0.1""WPMG Team")
    
register_clcmd("drop""use_skill")
}

public 
plugin_precache()
{
    
g_zclass_madness zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
}

public 
zp_user_infected_post(idinfector)
{
    if(
zp_get_user_zombie_class(id) == g_zclass_madness)
    {
        
client_printcolor(id"^4[ZP] ^1Press ^4^"G^" ^1for use your madness.")
        
last_use[id] = 0.0
    
}
}

public 
use_skill(id)
{
    if(
is_user_alive(id) && !zp_get_user_nemesis(id) && zp_get_user_zombie(id) && (zp_get_user_zombie_class(id) == g_zclass_madness))
    {
        if((
last_use[id] + 15.0 <= get_gametime()))
        {
            
last_use[id] = get_gametime();

            
zp_force_buy_extra_item(id21)

            return 
PLUGIN_HANDLED;
        }
    }
    return 
PLUGIN_CONTINUE;
}

stock client_printcolor(const id, const input[], any:...)
{
    new 
iCount 1iPlayers[32]
    static 
szMsg[191]

    
vformat(szMsgcharsmax(szMsg), input3)
    
replace_all(szMsg190"/g""^4")
    
replace_all(szMsg190"/y""^1")
    
replace_all(szMsg190"/t""^3")
    
replace_all(szMsg190"/w""^0")

    if(
idiPlayers[0] = id
    
else get_players(iPlayersiCount"ch")

    for(new 
0iCounti++)
    {
        if(
is_user_connected(iPlayers[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _iPlayers[i])
            
write_byte(iPlayers[i])
            
write_string(szMsg)
            
message_end()
        }
    }

thekiller123 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 23:21.


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