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

Zombie Plague Mod 5.0


Post New Thread Closed Thread   
 
Thread Tools Display Modes
devil001
Member
Join Date: Feb 2008
Old 02-26-2009 , 08:47   Re: Zombie Plague Mod 4.2
#2811

@ jubic ..if it doesnt compile try to put the zombieplague.inc in your local scripting/includes folder. If it return an compiler error please show it to us
__________________
Host Mist - Helping People Say Hello World
Shared | VPS | Dedicated Hosting
Backup-Spot
Secure,Fast and Reliable Offsite Backups
devil001 is offline
Jubic
Junior Member
Join Date: Feb 2009
Old 02-26-2009 , 09:22   Re: Zombie Plague Mod 4.2
#2812

AMX Mod X isn't linked with my CS... I actually downloaded CS 1.6 with the plugin (Didn't need to install AMX separately).. So I have no idea what cha talkin about.


Code:
/*================================================================================
    
    ---------------------------------------
    -*- Zombie Plague 4.2 Includes File -*-
    ---------------------------------------
    
    ~~~~~~~~~~
    - How To -
    ~~~~~~~~~~
    
    To use the functions listed here on your plugin, just add the
    following line at the beginning of your script:
    
    #include <zombieplague>
    
    ~~~~~~~~~~~
    - Natives -
    ~~~~~~~~~~~
    
    These work just like any other functions: you may have to pass
    parameters and they usually return values (1 means true, 0 for
    false).
    
    Example:
    
    if ( is_user_alive(id) && zp_get_user_zombie(id) )
    {
        server_print("player %d is alive and a zombie", id)
    }
    
    ~~~~~~~~~~~~
    - Forwards -
    ~~~~~~~~~~~~
    
    Forwards get called whenever an event happens during the game.
    You need to make a public function somewhere on your script,
    and it will automatically be triggered at the right time.
    
    Example:
    
    public zp_user_infected_post(id, infector)
    {
        server_print("Player %d just got infected by %d!", id, infector)
    }
    
    Also, take note of cases when there's a suffix:
    
    * _pre  : means the forward will be called BEFORE the event happens
    * _post : means it will be called AFTER the event takes place
    
=================================================================================*/

#if defined _zombieplague_included
  #endinput
#endif
#define _zombieplague_included

/* Returns whether a player is a zombie */
native zp_get_user_zombie(id)

/* Returns whether a player is a nemesis */
native zp_get_user_nemesis(id)

/* Returns whether a player is a survivor */
native zp_get_user_survivor(id)

/* Returns whether a player is the first zombie */
native zp_get_user_first_zombie(id)

/* Returns whether a player is the last zombie */
native zp_get_user_last_zombie(id)

/* Returns whether a player is the last human */
native zp_get_user_last_human(id)

/* Returns a player's current zombie class ID */
native zp_get_user_zombie_class(id)

/* Sets a player's zombie class ID (for the next infection) */
native zp_set_user_zombie_class(id, classid)

/* Returns a player's ammo pack count */
native zp_get_user_ammo_packs(id)

/* Sets a player's ammo pack count */
native zp_set_user_ammo_packs(id, amount)

/* Returns the default maximum health of a zombie */
native zp_get_zombie_maxhealth(id)

/* Returns a player's custom flashlight batteries charge */
native zp_get_user_batteries(id)

/* Sets a player's custom flashlight batteries charge */
native zp_set_user_batteries(id, value)

/* Forces a player to become a zombie (infection rounds only) */
native zp_infect_user(id, infector = 0)

/* Forces a player to become a human (infection rounds only) */
native zp_disinfect_user(id)

/* Respawns a player to a specific team (infections rounds only) */
native zp_respawn_user(id, team)

/* Returns whether the round has started (i.e. a game mode began) */
native zp_has_round_started()

/* Returns whether it's a nemesis round */
native zp_is_nemesis_round()

/* Returns whether it's a survivor round */
native zp_is_survivor_round()

/* Returns whether it's a swarm round */
native zp_is_swarm_round()

/* Returns whether it's a plague round */
native zp_is_plague_round()

/* Teams for zp_register_extra_item() */
enum
{
    ZP_TEAM_ANY = 0,
    ZP_TEAM_ZOMBIE,
    ZP_TEAM_HUMAN
}

/* Registers a custom item which will be added to the extra items menu of ZP.
*  Returns an internal extra item ID (which is needed to correctly catch selection
*  events for the zp_extra_item_selected() forward) or -1 on failure. */
native zp_register_extra_item(const name[], cost, team)

/* Registers a custom class which will be added to the zombie classes menu of ZP.
*  Returns an internal zombie class ID (which is then used to identify the class
*  when calling the zp_get_user_zombie_class() native) or -1 on failure. */
native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback)

/* ============================================================================ */

/* Called when the round starts
*  gamemode - will indicate which mode has commenced
*  player   - will hold the affected player id (if applicable) */
forward zp_round_started(gamemode, player)

/* Game modes for zp_round_started() */
enum
{
    MODE_NONE = 0,
    MODE_INFECTION,
    MODE_NEMESIS,
    MODE_SURVIVOR,
    MODE_SWARM,
    MODE_MULTI,
    MODE_PLAGUE
}

/* Called when the round ends */
forward zp_round_ended(winteam)

/* Winning teams for zp_round_ended() */
enum
{
    WIN_NO_ONE = 0,
    WIN_ZOMBIES,
    WIN_HUMANS
}

/* Called when a player gets infected. */
forward zp_user_infected_pre(id, infector)
forward zp_user_infected_post(id, infector)

/* Called when a player turns back to human */
forward zp_user_humanized_pre(id)
forward zp_user_humanized_post(id)

/* Called when a player buys an extra item from the ZP menu
*  player - will hold the id of the player who's buying
*  itemid - will contain the internal extra item ID */
forward zp_extra_item_selected(player, itemid)

Last edited by Jubic; 02-26-2009 at 09:27.
Jubic is offline
Jubic
Junior Member
Join Date: Feb 2009
Old 02-26-2009 , 09:39   Re: Zombie Plague Mod 4.2
#2813

Is it changing the "/*" to "#" ?
Jubic is offline
devil001
Member
Join Date: Feb 2008
Old 02-26-2009 , 14:11   Re: Zombie Plague Mod 4.2
#2814

sorry I didnt have time to check your code earlier....obviously you had a typo in your code...

change:

Code:
new const zclass6_mode1[] = { "zombie_source" }
to

Code:
new const zclass6_model[] = { "zombie_source" }
+karma me if I helped...
__________________
Host Mist - Helping People Say Hello World
Shared | VPS | Dedicated Hosting
Backup-Spot
Secure,Fast and Reliable Offsite Backups
devil001 is offline
Jubic
Junior Member
Join Date: Feb 2009
Old 02-26-2009 , 23:08   Re: Zombie Plague Mod 4.2
#2815

Code:
// Float Zombie Attributes
new const zclass6_name[] = { "Jump Zombie" } // name
new const zclass6_info[] = { "Jump++" } // description
new const zclass6_model[] = { "zombie_source" } // model
new const zclass6_clawmodel[] = { "v_knife_zombie.mdl" } // claw model
const zclass6_health = 1800 // health
const zclass6_speed = 190 // speed
const Float:zclass6_gravity = 0.25 // gravity
const Float:zclass6_knockback = 0.25 // knockback

/*============================================================================*/

// Class IDs
new g_zclass_leech
new g_zclass_float

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
    register_plugin("[ZP] Default Zombie Classes", "4.2", "MeRcyLeZZ")
    
    // Register all classes
    zp_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, zclass1_knockback)    
    zp_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, zclass2_knockback)
    zp_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, zclass3_knockback)
    zp_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, zclass4_knockback)
    g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback)
    g_zclass_float = zp_register_zombie_class(zclass6_name, zclass6_info, zclass6_model, zclass6_clawmodel, zclass6_health, zclass6_speed, zclass6_gravity, zclass6_knockback)
}

Last edited by Jubic; 02-27-2009 at 12:25.
Jubic is offline
Old 02-26-2009, 23:48
Jubic
This message has been deleted by Jubic.
Juoksu
New Member
Join Date: Feb 2009
Location: Finland, Lahti
Old 02-28-2009 , 03:02   Re: Zombie Plague Mod 4.2
#2816

little ask, how i can get zombies differents models??
Juoksu is offline
water
Member
Join Date: Feb 2009
Old 03-01-2009 , 04:16   Re: Zombie Plague Mod 4.2
#2817

how to make backround music?
water is offline
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 03-01-2009 , 14:22   Re: Zombie Plague Mod 4.2
#2818

lol background music is easy...

Just convert song into a wave file...and that is bout it...of course when you convert tho it will most likely be uncompressed hence it will still breach over a couple MB so to prevent the size from being large still just compress the wave file...

I know all this because I did it for a map on my current server...

---Stixsmaster
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
yomo310
Junior Member
Join Date: Jul 2008
Old 03-02-2009 , 10:49   Re: Zombie Plague Mod 4.2
#2819

ay umm.. im gettin a hamsandwich error tellin me i need it. any help?
yomo310 is offline
Satoko
Senior Member
Join Date: Oct 2008
Location: Germany
Old 03-02-2009 , 12:20   Re: Zombie Plague Mod 4.2
#2820

download the latest amx mod x (1.8.1) then you must have hamsandwich module.
__________________

Satoko is offline
Old 03-02-2009, 15:51
joropito
This message has been deleted by joropito.
Closed Thread



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:30.


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