Raised This Month: $ Target: $400
 0% 

[ZP] Zombie Class: Dog


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zombie-rus
Senior Member
Join Date: Feb 2010
Location: Russia, Tomsk
Old 07-19-2010 , 06:06   [ZP] Zombie Class: Dog
Reply With Quote #1

[ZP] Zombie Class: Dog

Class code:
Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <cstrike>
#include <fun>

new g_zclassid1, cvar_fov

new g_zombies_fov

public plugin_init()
{
    register_plugin("[ZP] Class: Dog Zombie", "0.1", "Zombie-rus")

    cvar_fov = register_cvar("zp_class_fov", "120")
}

public plugin_precache()
{
    g_zclassid1 = zp_register_zombie_class("Zombie Dog", "Speed++ HP- Jump++", "bobik", "v_knife_dog_zombie.mdl", 1200, 220, 1.0, 1.0)

}

public plugin_cfg()
{
    g_zombies_fov = get_cvar_pointer("zp_zombie_fov")
}

public zp_user_infected_post(id, infector)
{
    if (zp_get_user_zombie_class(id) == g_zclassid1)
    {
        client_print(id, print_chat, "[ZP] You become a zombie dog!")
        set_user_footsteps(id, 1)
        
    }
}

public msg_one_unreliable(id)
{
    if (zp_get_user_zombie_class(id) == g_zclassid1)
    {
        message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SetFOV"), {0,0,0}, id)
        write_byte(get_pcvar_num(cvar_fov))
        message_end()
    }
    else 
    {
        message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SetFOV"), {0,0,0}, id)
        write_byte(g_zombies_fov) // fov angle
        message_end()
    }
}
Picture

[IMG]http://img837.**************/img837/104/skrinzombiedog.jpg[/IMG]

[RU]У класса есть своя модель + модель рук. Которые можно скачать ниже
[EN] Class has its own model + model hands. Which can be downloaded below

http://www.mediafire.com/?uf33at4tmcf9n0f
__________________
[ZP] Extra Item: Dynamite Zombie - completed
Zombie-rus 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 16:22.


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