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

[TUT] How to make a Zombie Class


Post New Thread Reply   
 
Thread Tools Display Modes
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-20-2010 , 12:41   Re: [TUT] How to make a Zombie Class
Reply With Quote #11

Please do not derail threads.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Old 06-20-2010, 13:47
SaM.ThE.MaN
This message has been deleted by Emp`. Reason: Stop derailing threads.
FinSmart
Junior Member
Join Date: Oct 2009
Location: Planet Pluto
Old 06-30-2010 , 01:06   Re: [TUT] How to make a Zombie Class
Reply With Quote #12

how to make zombie have Abilities??
FinSmart is offline
Send a message via MSN to FinSmart
Vechta
Veteran Member
Join Date: Jun 2010
Old 06-30-2010 , 03:32   Re: [TUT] How to make a Zombie Class
Reply With Quote #13

learn scripting..
Vechta is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 11-27-2010 , 14:35   Re: [TUT] How to make a Zombie Class
Reply With Quote #14

Quote:
Originally Posted by RedRobster View Post
Well... Almost 7 months...hmmm...iffy...I can't decide!

http://www.youtube.com/watch?v=tNMWYzg7g3g
haa awesome, im back after my banned for i think it was spaming/advertising/and flaming.
__________________
Zombiezzz is offline
DarthTemplar312
Junior Member
Join Date: Dec 2010
Location: Its Complicated
Old 04-01-2011 , 22:23   Re: [TUT] How to make a Zombie Class
Reply With Quote #15

Quote:
Originally Posted by Zombiezzz View Post
This is for Zombie Plague 4.3

Im going to show you how to make a simple zombie class! we are going to make a Zombie Class called "Gravity Zombie" and will have low gravity.

First step, we need to include ZombiePlague
PHP Code:
#include <amxmodx>
#include <zombieplague> 
2 step. is to make the Zombie Attributes
PHP Code:
// Zombie Attributes
new const zclass_name[] = { "Gravity Zombie" // name
new const zclass_info[] = { "Low grav -HP" // description
new const zclass_model[] = { "zombie_Source" // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" // claw model
const zclass_health 800 // health
const zclass_speed 200 // speed
const Float:zclass_gravity 0.4 // gravity
const Float:zclass_knockback 0.6 // knockback 
3 step. make a simple "new" code for teh next entry.
PHP Code:
// Class IDs
new g_zclassid1 
4. Now register the Zombie Class so we make this.
PHP Code:
// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
 
register_plugin("[ZP] Zombie Class: Gravity Zombie""1.0""Zombiezzz"
 
 
// Register the new class and store ID for reference
 
g_zclassid1 zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback

5. We are almsot done. Now we make a code that makes something happens when the persone chooses the class. We will use a simple Client_print which will show the player w.e u want when he choose the class.
PHP Code:
public zp_user_infected_post idinfector )
{
              if (
zp_get_user_zombie_class(id) == g_zclassid1)
             {
                  
client_print(idprint_chat"[ZP] You Have Choosen Gravity Zombie"
             }

you can add glow and other items in that place.

Now put it all together and you should have it like this ^_^
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <zombieplague>
// Zombie Attributes
new const zclass_name[] = { "Gravity Zombie" // name
new const zclass_info[] = { "Low Grav -HP" // description
new const zclass_model[] = { "zombie_source" // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" // claw model
const zclass_health 800 // health
const zclass_speed 200 // speed
const Float:zclass_gravity 0.5 // gravity
const Float:zclass_knockback 0.6 // knockback
// Class IDs
new g_zclassid1
// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
 
register_plugin("[ZP] Zombie Class: Gravity Zombie""1.0""Zombiezzz"
 
 
// Register the new class and store ID for reference
 
g_zclassid1 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_zclassid1)
             {
                  
client_print(idprint_chat"[ZP] You Have Choosen Gravity Zombie"
             }

also if you want to add more like lets say red glow, just reamnber to #include fun or whate ever function is needed like here.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fun>
#include <zombieplague>
// Zombie Attributes
new const zclass_name[] = { "Gravity Zombie" // name
new const zclass_info[] = { "Low Grav -HP" // description
new const zclass_model[] = { "zombie_source" // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" // claw model
const zclass_health 800 // health
const zclass_speed 200 // speed
const Float:zclass_gravity 0.5 // gravity
const Float:zclass_knockback 0.6 // knockback
// Class IDs
new g_zclassid1
// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
 
register_plugin("[ZP] Zombie Class: Gravity Zombie""1.0""Zombiezzz"
 
 
// Register the new class and store ID for reference
 
g_zclassid1 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_zclassid1)
             {
                  
set_user_rendering(index,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
                  
client_print(idprint_chat"[ZP] You Have Choosen Gravity Zombie"
             }





error when i compile
__________________
Youll never get mi pots of gold..!! their MagICLly DelicouS!
DarthTemplar312 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 04-05-2011 , 16:35   Re: [TUT] How to make a Zombie Class
Reply With Quote #16

you have to compile it from your computer.
__________________
Zombiezzz is offline
sound010
Senior Member
Join Date: Mar 2011
Old 06-28-2011 , 06:21   Re: [TUT] How to make a Zombie Class
Reply With Quote #17

tis is problem:

Quote:
Originally Posted by Zombiezzz View Post
PHP Code:
set_user_rendering(index,kRenderFxGlowShell,255,0,0,kRenderNormal,25
now :

PHP Code:
set_user_rendering(idkRenderFxNone0,0,0kRenderNormal255
__________________
sound010 is offline
ekselent1
Junior Member
Join Date: Jan 2012
Old 04-16-2012 , 06:32   Re: [TUT] How to make a Zombie Class
Reply With Quote #18

how to make it for ADMIN_LEVEL_H ?
ekselent1 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 04-25-2012 , 00:13   Re: [TUT] How to make a Zombie Class
Reply With Quote #19

put this after include zombie plague
#define ACCESS ADMIN_LEVEL_H
__________________
Zombiezzz is offline
peNgueN
Junior Member
Join Date: Nov 2011
Old 05-13-2012 , 14:58   Re: [TUT] How to make a Zombie Class
Reply With Quote #20

thanks.
peNgueN 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 03:09.


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