AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Suggestion / Subplugin Request Resuest zombie class (https://forums.alliedmods.net/showthread.php?t=266464)

Kimi. 07-17-2015 09:18

Resuest zombie class
 
Welcome To alliedmods.net

First of all I'm a new user.. and i want a request

The Game : Counter-strike 1.6
Mod : Zombie Plague 4.3

Plugin Requested : i need a plugin of ZP CLASS

The Zombie Press "g" and he get 15s of Zombie Madness for free .... Example : Go to CLARION ZM ARMY

Please Can you make it ??

Linkin Hisoka 07-17-2015 22:47

Re: Resuest zombie class
 
o.O

Kimi. 07-19-2015 11:34

Re: Resuest zombie class
 
Please some one ???

;)

Kimi. 07-19-2015 11:35

Re: Resuest zombie class
 
PLease :x

thekiller123 07-19-2015 17:05

Re: Resuest zombie class
 
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()
        }
    }



Kimi. 07-19-2015 17:31

Re: Resuest zombie class
 
When i try to compile it writes to me : You must upload a valid file!


All times are GMT -4. The time now is 23:21.

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