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

[TUT] How to make a Zombie Class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-04-2009 , 22:26   [TUT] How to make a Zombie Class
Reply With Quote #1

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 the 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"
             }

__________________

Last edited by Zombiezzz; 05-18-2011 at 12:07.
Zombiezzz is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 01-02-2010 , 02:17   Re: [TUT] How to make a Zombie Class
Reply With Quote #2

fixed parts of the code

bumb

and a turtle
__________________
Zombiezzz is offline
qpalzm12343
Member
Join Date: Mar 2009
Old 01-21-2010 , 09:09   Re: [TUT] How to make a Zombie Class
Reply With Quote #3

Thanks! +karma
qpalzm12343 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 01-21-2010 , 19:02   Re: [TUT] How to make a Zombie Class
Reply With Quote #4

FIANLY! about 2 months someone said something ^^ your welcome.
__________________
Zombiezzz is offline
edasi6
Member
Join Date: Apr 2010
Old 06-15-2010 , 11:18   Re: [TUT] How to make a Zombie Class
Reply With Quote #5

Nice dude !! That realy helped me !!!! Your the best
edasi6 is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-16-2010 , 16:20   Re: [TUT] How to make a Zombie Class
Reply With Quote #6

finally a nice tut about how to make a zombie , good job
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-16-2010 , 21:19   Re: [TUT] How to make a Zombie Class
Reply With Quote #7

Quote:
Originally Posted by SaM.ThE.MaN View Post
finally a nice tut about how to make a zombie , good job
lol, check the date. It's been here almost a year.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-17-2010 , 02:22   Re: [TUT] How to make a Zombie Class
Reply With Quote #8

Quote:
Originally Posted by drekes View Post
lol, check the date. It's been here almost a year.
I never checked out this thread hahaha, thats why -.-
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 06-18-2010 , 15:59   Re: [TUT] How to make a Zombie Class
Reply With Quote #9

Quote:
Originally Posted by drekes View Post
lol, check the date. It's been here almost a year.
Not really, was made in December of last year. It's kind of recent.
__________________
Hi.
Kreation is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-18-2010 , 17:14   Re: [TUT] How to make a Zombie Class
Reply With Quote #10

Well... Almost 7 months...hmmm...iffy...I can't decide!

http://www.youtube.com/watch?v=tNMWYzg7g3g
RedRobster is offline
Old 06-18-2010, 20:14
drekes
This message has been deleted by Emp`. Reason: Stop derailing threads
Old 06-19-2010, 02:15
SaM.ThE.MaN
This message has been deleted by Emp`. Reason: Stop derailing threads
Old 06-19-2010, 07:25
drekes
This message has been deleted by Emp`. Reason: Stop derailing threads
Old 06-20-2010, 02:57
SaM.ThE.MaN
This message has been deleted by Emp`. Reason: Stop derailing threads
Old 06-20-2010, 04:04
RedRobster
This message has been deleted by Emp`. Reason: Stop derailing threads
Old 06-20-2010, 07:02
drekes
This message has been deleted by Emp`. Reason: Stop derailing threads.
Old 06-20-2010, 07:36
SaM.ThE.MaN
This message has been deleted by Emp`. Reason: Stop derailing threads.
Old 06-20-2010, 07:41
drekes
This message has been deleted by Emp`. Reason: Stop derailing threads.
Old 06-20-2010, 09:49
SaM.ThE.MaN
This message has been deleted by Emp`. Reason: Stop derailing threads.
Old 06-20-2010, 11:21
t*stylez
This message has been deleted by Emp`. Reason: Stop derailing threads.
Old 06-20-2010, 11:49
drekes
This message has been deleted by Emp`. Reason: Stop derailing threads.
Old 06-20-2010, 12:21
SaM.ThE.MaN
This message has been deleted by Emp`. Reason: Stop derailing threads.
Old 06-20-2010, 12:40
drekes
This message has been deleted by Emp`. Reason: Stop derailing threads.
Reply


Thread Tools
Display Modes

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


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