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

[ZP] Como cargar zombies al ZP -Si venis a molestar no entres-


  
 
 
Thread Tools Display Modes
Author Message
Sebaa
Junior Member
Join Date: Feb 2013
Location: Argentina, Buenos Aires
Old 02-25-2013 , 22:27   [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#1

Hola a todos los amantes del ZP, estube editando un sma, bien carge los models de armas,wesker,neme,y eso, bien menos los zombies y los humanos, quisiera saber como hacer para agregarlos, ¿Hay que crear un sma y agregar las clases zombies y humanas?, Como es la cosa?, en el sma del zp solo puse models de zombi admin y human admin, y los modos. nose donde agregar lo demas. espero que puedan ayudarme, gracias de antemano!
__________________
Si nos ayudaramos entre todos el mundo seria mejor.
Sebaa is offline
Send a message via Skype™ to Sebaa
claans
Senior Member
Join Date: Jul 2012
Location: Argentina
Old 02-25-2013 , 22:30   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#2

Los models del zp los tenes que editar en el zp_zclasses40 , fijate si hicistes eso que dijistes hay es facil hacerlo , es la misma formula , y las humanas si queres clases humanas las tenes que hacer vos , te recomiendo con un enum

sl2
cLAANS.-
__________________
http://amxmodx-es.com/ Allied Modders en español
http://amxmodx-es.com/ Allied Modders in spanish
claans is offline
Send a message via MSN to claans Send a message via Skype™ to claans
Sebaa
Junior Member
Join Date: Feb 2013
Location: Argentina, Buenos Aires
Old 02-25-2013 , 22:33   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#3

Hmmm estoy editando un apocalypsis de RaulTop, para ir probando, edite un za_zclasses, pero nada! me da un error en el server, osea no anda el ZA porque no tengo clases zombies y pongo las clases zombies y no me andan porque nose algo de za_register_class da error, y dice que me fije el modules.ini, me fije y no se que onda esta todo activado. si queres el php decime
__________________
Si nos ayudaramos entre todos el mundo seria mejor.
Sebaa is offline
Send a message via Skype™ to Sebaa
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 02-26-2013 , 10:28   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#4

Quote:
Originally Posted by Sebaa View Post
Hmmm estoy editando un apocalypsis de RaulTop, para ir probando, edite un za_zclasses, pero nada! me da un error en el server, osea no anda el ZA porque no tengo clases zombies y pongo las clases zombies y no me andan porque nose algo de za_register_class da error, y dice que me fije el modules.ini, me fije y no se que onda esta todo activado. si queres el php decime
Ya publicaste este error en otro thread....

Ya te dijeron que mostraras el plugin za_zclasses y zombie_apocalypse y el include zombieapocalypse

Sigues sin mostrarlos...

Last edited by baneado; 02-26-2013 at 10:29.
baneado is offline
Sebaa
Junior Member
Join Date: Feb 2013
Location: Argentina, Buenos Aires
Old 02-26-2013 , 14:13   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#5

Bueno pero no lo puedo solucionar che!,

Php code za_zclasses
PHP Code:
/*================================================================================
    
    -----------------------------------
    -*- [ZP] Default Zombie Classes -*-
    -----------------------------------
    
================================================================================
                                  Addapted for Zombie Apocalypse
=================================================================================

    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
    
    This plugin adds the default zombie classes to Zombie Plague.
    Feel free to modify their attributes to your liking.
    
    Note: If zombie classes are disabled, the first registered class
    will be used for all players (by default, Classic Zombie).
    
================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieapocalypse>

/*================================================================================
 [Plugin Customization]
=================================================================================*/

// Classic Zombie Attributes
new const zclass1_name[] = { "Zombie Clasico" }
new const 
zclass1_info[] = { "-->Balanceado--<" }
new const 
zclass1_model[] = { "zombie_source" }
new const 
zclass1_clawmodel[] = { "v_knife_zombie.mdl" }
const 
zclass1_level 1
const zclass1_health 8000
const zclass1_speed 260
const Float:zclass1_gravity 1.0
const Float:zclass1_knockback 1.0

// Raptor Zombie Attributes
new const zclass2_name[] = { "Zombie Cazador" }
new const 
zclass2_info[] = { "Velocidad++ Knockback++" }
new const 
zclass2_model[] = { "za_hunter" }
new const 
zclass2_clawmodel[] = { "v_hunterz.mdl" }
const 
zclass2_level 15
const zclass2_health 8000
const zclass2_speed 300
const Float:zclass2_gravity 1.0
const Float:zclass2_knockback 1.5

// Poison Zombie Attributes
new const zclass3_name[] = { "Zombie Esqueleto" }
new const 
zclass3_info[] = { "Velocidad- Salto++" }
new const 
zclass3_model[] = { "mummya" }
new const 
zclass3_clawmodel[] = { "v_mummya.mdl" }
const 
zclass3_level 35
const zclass3_health 8000
const zclass3_speed 240
const Float:zclass3_gravity 0.75
const Float:zclass3_knockback 1.0

// Big Zombie Attributes
new const zclass4_name[] = { "Zombie Gordo" }
new const 
zclass4_info[] = { "Vida++ Velocidad- Knockback+" }
new const 
zclass4_model[] = { "bigzombie" }
new const 
zclass4_clawmodel[] = { "v_bigzombie.mdl" }
const 
zclass4_level 45
const zclass4_health 9000
const zclass4_speed 240
const Float:zclass4_gravity 1.0
const Float:zclass4_knockback 1.25

// Leech Zombie Attributes
new const zclass5_name[] = { "Zombie Headcrab" }
new const 
zclass5_info[] = { "Vida-- Salto+ \rConsigue vida extra al infectar" }
new const 
zclass5_model[] = { "zombie_headcrab" }
new const 
zclass5_clawmodel[] = { "v_knife_zombie.mdl" }
const 
zclass5_level 60
const zclass5_health 7000
const zclass5_speed 260
const Float:zclass5_gravity 0.75
const Float:zclass5_knockback 1.0
const zclass5_infecthp 200 // extra hp for infections

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

// Class IDs
new g_zclass_leech

// Zombie Classes MUST be registered on plugin_precache 
public plugin_precache() 

    
register_plugin("[ZA] Zombie Classes""4.3""Loqquita"
     
    
// Register all classes 
    
za_register_zombie_class(zclass1_namezclass1_infozclass1_modelzclass1_clawmodelzclass1_levelzclass1_healthzclass1_speedzclass1_gravityzclass1_knockback
    
za_register_zombie_class(zclass2_namezclass2_infozclass2_modelzclass2_clawmodelzclass2_levelzclass2_healthzclass2_speedzclass2_gravityzclass2_knockback
    
za_register_zombie_class(zclass3_namezclass3_infozclass3_modelzclass3_clawmodelzclass3_levelzclass3_healthzclass3_speedzclass3_gravityzclass3_knockback
    
za_register_zombie_class(zclass4_namezclass4_infozclass4_modelzclass4_clawmodelzclass4_levelzclass4_healthzclass4_speedzclass4_gravityzclass4_knockback
    
g_zclass_leech za_register_zombie_class(zclass5_namezclass5_infozclass5_modelzclass5_clawmodelzclass5_levelzclass5_healthzclass5_speedzclass5_gravityzclass5_knockback
}  

// User Infected forward
public zp_user_infected_post(idinfector)
{
    
// If attacker is a leech zombie, gets extra hp
    
if (infector)
    {
        if (
zp_get_user_zombie_class(infector) == g_zclass_leech)
            
set_pev(infectorpev_healthfloat(pev(infectorpev_health) + zclass5_infecthp))
    }

Code zombieapocalypse.INC

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

---------------------------------------
-*- Zombie Plague 4.3 Includes File -*-
---------------------------------------

~~~~~~~~~~
- How To -
~~~~~~~~~~

To make use of the Zombie Plague API features in 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.

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 callback somewhere on your script,
and it will automatically be triggered when the event occurs.

Example:

public zp_user_infected_post( id, infector, nemesis )
{
if ( !infector || nemesis )
return;

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

/* Teams for zp_register_extra_item() */
#define ZP_TEAM_ZOMBIE (1<<0)
#define ZP_TEAM_HUMAN (1<<1)
#define ZP_TEAM_NEMESIS (1<<2)
#define ZP_TEAM_SURVIVOR (1<<3)

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

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

/* Custom forward return values */
#define ZP_PLUGIN_HANDLED 97

/**
* Returns whether a player is a zombie.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native zp_get_user_zombie(id)

/**
* Returns whether a player is a nemesis.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native zp_get_user_nemesis(id)

/**
* Returns whether a player is a survivor.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native zp_get_user_survivor(id)

/**
* Returns whether a player is the first zombie.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native zp_get_user_first_zombie(id)

/**
* Returns whether a player is the last zombie.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native zp_get_user_last_zombie(id)

/**
* Returns whether a player is the last human.
*
* @param id Player index.
* @return True if it is, false otherwise.
*/
native zp_get_user_last_human(id)

/**
* Returns a player's current zombie class ID.
*
* @param id Player index.
* @return Internal zombie class ID, or -1 if not yet chosen.
*/
native zp_get_user_zombie_class(id)

/**
* Returns a player's next zombie class ID (for the next infection).
*
* @param id Player index.
* @return Internal zombie class ID, or -1 if not yet chosen.
*/
native zp_get_user_next_class(id)

/**
* Sets a player's next zombie class ID (for the next infection).
*
* @param id Player index.
* @param classid A valid zombie class ID.
* @return True on success, false otherwise.
*/
native zp_set_user_zombie_class(id, classid)

/**
* Returns a player's ammo pack count.
*
* @param id Player index.
* @return Number of ammo packs owned.
*/
native zp_get_user_ammo_packs(id)

/**
* Sets a player's ammo pack count.
*
* @param id Player index.
* @param amount New quantity of ammo packs owned.
*/
native zp_set_user_ammo_packs(id, amount)

/**
* Returns the default maximum health of a zombie.
*
* Note: Takes into account first zombie's HP multiplier.
*
* @param id Player index.
* @return Maximum amount of health points, or -1 if not a normal zombie.
*/
native zp_get_zombie_maxhealth(id)

/**
* Returns a player's custom flashlight batteries charge.
*
* @param id Player index.
* @return Charge percent (0 to 100).
*/
native zp_get_user_batteries(id)

/**
* Sets a player's custom flashlight batteries charge.
*
* @param id Player index.
* @param value New charge percent (0 to 100).
*/
native zp_set_user_batteries(id, charge)

/**
* Returns whether a player has night vision.
*
* @param id Player index.
* @return True if it has, false otherwise.
*/
native zp_get_user_nightvision(id)

/**
* Sets whether a player has night vision.
*
* @param id Player index.
* @param set True to give, false for removing it.
*/
native zp_set_user_nightvision(id, set)

/**
* Forces a player to become a zombie.
*
* Note: Unavailable for last human/survivor.
*
* @param id Player index to be infected.
* @param infector Player index who infected him (optional).
* @param silent If set, there will be no HUD messages or infection sounds.
* @param rewards Whether to show DeathMsg and reward frags, hp, and ammo packs to infector.
* @return True on success, false otherwise.
*/
native zp_infect_user(id, infector = 0, silent = 0, rewards = 0)

/**
* Forces a player to become a human.
*
* Note: Unavailable for last zombie/nemesis.
*
* @param id Player index to be cured.
* @param silent If set, there will be no HUD messages or antidote sounds.
* @return True on success, false otherwise.
*/
native zp_disinfect_user(id, silent = 0)

/**
* Forces a player to become a nemesis.
*
* Note: Unavailable for last human/survivor.
*
* @param id Player index to turn into nemesis.
* @return True on success, false otherwise.
*/
native zp_make_user_nemesis(id)

/**
* Forces a player to become a survivor.
*
* Note: Unavailable for last zombie/nemesis.
*
* @param id Player index to turn into survivor.
* @return True on success, false otherwise.
*/
native zp_make_user_survivor(id)

/**
* Respawns a player into a specific team.
*
* @param id Player index to be respawned.
* @param team Team to respawn the player into (ZP_TEAM_ZOMBIE or ZP_TEAM_HUMAN).
* @return True on success, false otherwise.
*/
native zp_respawn_user(id, team)

/**
* Forces a player to buy an extra item.
*
* @param id Player index.
* @param itemid A valid extra item ID.
* @param ignorecost If set, item's cost won't be deduced from player.
* @return True on success, false otherwise.
*/
native zp_force_buy_extra_item(id, itemid, ignorecost = 0)

/**
* Returns whether the ZP round has started, i.e. first zombie
* has been chosen or a game mode has begun.
*
* @return 0 - Round not started
* 1 - Round started
* 2 - Round starting
*/
native zp_has_round_started()

/**
* Returns whether the current round is a nemesis round.
*
* @return True if it is, false otherwise.
*/
native zp_is_nemesis_round()

/**
* Returns whether the current round is a survivor round.
*
* @return True if it is, false otherwise.
*/
native zp_is_survivor_round()

/**
* Returns whether the current round is a swarm round.
*
* @return True if it is, false otherwise.
*/
native zp_is_swarm_round()

/**
* Returns whether the current round is a plague round.
*
* @return True if it is, false otherwise.
*/
native zp_is_plague_round()

/**
* Returns number of alive zombies.
*
* @return Zombie count.
*/
native zp_get_zombie_count()

/**
* Returns number of alive humans.
*
* @return Human count.
*/
native zp_get_human_count()

/**
* Returns number of alive nemesis.
*
* @return Nemesis count.
*/
native zp_get_nemesis_count()

/**
* Returns number of alive survivors.
*
* @return Survivor count.
*/
native zp_get_survivor_count()

/**
* Registers a custom item which will be added to the extra items menu of ZP.
*
* Note: The returned extra item ID can be later used to catch item
* purchase events for the zp_extra_item_selected() forward.
*
* Note: ZP_TEAM_NEMESIS and ZP_TEAM_SURVIVOR can be used to make
* an item available to Nemesis and Survivors respectively.
*
* @param name Caption to display on the menu.
* @param cost Ammo packs to be deducted on purchase.
* @param teams Bitsum of teams it should be available for.
* @return An internal extra item ID, or -1 on failure.
*/
native zp_register_extra_item(const name[], cost, teams)

/**
* Registers a custom class which will be added to the zombie classes menu of ZP.
*
* Note: The returned zombie class ID can be later used to identify
* the class when calling the zp_get_user_zombie_class() natives.
*
* @param name Caption to display on the menu.
* @param info Brief description of the class.
* @param model Player model to be used.
* @param clawmodel Claws model to be used.
* @param hp Initial health points.
* @param speed Maximum speed.
* @param gravity Gravity multiplier.
* @param knockback Knockback multiplier.
* @return An internal zombie class ID, or -1 on failure.
*/
native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback)

/**
* Returns an extra item's ID.
*
* @param name Item name to look for.
* @return Internal extra item ID, or -1 if not found.
*/
native zp_get_extra_item_id(const name[])

/**
* Returns a zombie class' ID.
*
* @param name Class name to look for.
* @return Internal zombie class ID, or -1 if not found.
*/
native zp_get_zombie_class_id(const name[])

/**
* Called when the ZP round starts, i.e. first zombie
* is chosen or a game mode begins.
*
* @param gamemode Mode which has started.
* @param id Affected player's index (if applicable).
*/
forward zp_round_started(gamemode, id)

/**
* Called when the round ends.
*
* @param winteam Team which has won the round.
*/
forward zp_round_ended(winteam)

/**
* Called when a player gets infected.
*
* @param id Player index who was infected.
* @param infector Player index who infected him (if applicable).
* @param nemesis Whether the player was turned into a nemesis.
*/
forward zp_user_infected_pre(id, infector, nemesis)
forward zp_user_infected_post(id, infector, nemesis)

/**
* Called when a player turns back to human.
*
* @param id Player index who was cured.
* @param survivor Whether the player was turned into a survivor.
*/
forward zp_user_humanized_pre(id, survivor)
forward zp_user_humanized_post(id, survivor)

/**
* Called on a player infect/cure attempt. You can use this to block
* an infection/humanization by returning ZP_PLUGIN_HANDLED in your plugin.
*
* Note: Right now this is only available after the ZP round starts, since some
* situations (like blocking a first zombie's infection) are not yet handled.
*/
forward zp_user_infect_attempt(id, infector, nemesis)
forward zp_user_humanize_attempt(id, survivor)

/**
* Called when a player buys an extra item from the ZP menu.
*
* Note: You can now return ZP_PLUGIN_HANDLED in your plugin to block
* the purchase and the player will be automatically refunded.
*
* @param id Player index of purchaser.
* @param itemid Internal extra item ID.
*/
forward zp_extra_item_selected(id, itemid)

/**
* Called when a player gets unfrozen (frostnades).
*
* @param id Player index.
*/
forward zp_user_unfrozen(id)

/**
* Called when a player becomes the last zombie.
*
* Note: This is called for the first zombie too.
*
* @param id Player index.
*/
forward zp_user_last_zombie(id)

/**
* Called when a player becomes the last human.
*
* @param id Player index.
*/
forward zp_user_last_human(id)


/**
* @deprecated - Do not use!
* For backwards compatibility only.
*/
#define ZP_TEAM_ANY 0
Si me pueden ayudaaaaaaaaar se los agradeceria quiero hacerlo andar al apocaa!
__________________
Si nos ayudaramos entre todos el mundo seria mejor.
Sebaa is offline
Send a message via Skype™ to Sebaa
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 02-26-2013 , 15:04   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#6

Te tira error o que onda?
Matians is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 02-26-2013 , 15:06   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#7

ese no es el include del zombieapocalypse, no jeringes
baneado is offline
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 02-26-2013 , 15:21   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#8

Claro, si quieres que ande, minimamente cambia

PHP Code:
native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hpspeedFloat:gravityFloat:knockback// ESTO CÁMBIALO POR

native za_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hpspeedFloat:gravityFloat:knockback// Minimamente, este es el que anda, pero cámbialo en el include 
Y para el include que es enorme, al principio agrégale.
PHP Code:
[phpy al final 
O usa
Code:
 y al final
[/php]

Last edited by Matians; 02-26-2013 at 15:25.
Matians is offline
Sebaa
Junior Member
Join Date: Feb 2013
Location: Argentina, Buenos Aires
Old 02-26-2013 , 15:41   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#9

No me deja compilar si uso za_register_zombie_class, sabes las veces que intente cambiando de todo, me deja compilarlo usano ZP_, sino no me deja compilar y da error en lineas, No tienen un sma de za_zclass ya hecho?
__________________
Si nos ayudaramos entre todos el mundo seria mejor.
Sebaa is offline
Send a message via Skype™ to Sebaa
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 02-26-2013 , 15:42   Re: [ZP] Como cargar zombies al ZP -Si venis a molestar no entres-
#10

Quote:
Originally Posted by Matians View Post
Claro, si quieres que ande, minimamente cambia

PHP Code:
native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hpspeedFloat:gravityFloat:knockback// ESTO CÁMBIALO POR

native za_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hpspeedFloat:gravityFloat:knockback// Minimamente, este es el que anda, pero cámbialo en el include 
Y para el include que es enorme, al principio agrégale.
PHP Code:
[phpy al final 
O usa
Code:
 y al final
[/php]
que lo descarge, en mi firma está

pd: no pusiste el nivel

Last edited by baneado; 02-26-2013 at 15:46.
baneado 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 18:27.


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