Raised This Month: $32 Target: $400
 8% 

Help [ Avatar Mod ]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mix97mix
Member
Join Date: Sep 2011
Old 10-09-2011 , 08:34   Help [ Avatar Mod ]
Reply With Quote #1

Ok.
Using this

#include <amxmodx>
#include <fakemeta>
#include <avatarmod>

new const zclass1_name[] = { "Classic Avatar" }
new const zclass1_info[] = { "=Balanced=" }
new const zclass1_model[] = { "avatar" }
new const zclass1_clawmodel[] = { "v_knife_avatar.mdl" }
const zclass1_health = 1800
const zclass1_speed = 190
const Float:zclass1_gravity = 1.0
const Float:zclass1_knockback = 1.0

new const zclass2_name[] = { "Bull Avatar" }
new const zclass2_info[] = { "HP-- Speed++ Knockback++" }
new const zclass2_model[] = { "av_bull" }
new const zclass2_clawmodel[] = { "cerbeus_zomb2.mdl" }
const zclass2_health = 900
const zclass2_speed = 225
const Float:zclass2_gravity = 1.0
const Float:zclass2_knockback = 1.5

new const zclass3_name[] = { "Dragon Avatar" }
new const zclass3_info[] = { "HP- Jump+ Knockback+" }
new const zclass3_model[] = { "av_dragon" }
new const zclass3_clawmodel[] = { "cerbeus_zomb2.mdl" }
const zclass3_health = 1400
const zclass3_speed = 190
const Float:zclass3_gravity = 0.75
const Float:zclass3_knockback = 1.25

new const zclass4_name[] = { "Assassin Avatar" }
new const zclass4_info[] = { "HP++ Speed- Knockback--" }
new const zclass4_model[] = { "av_assassin" }
new const zclass4_clawmodel[] = { "v_knife_assassin.mdl" }
const zclass4_health = 2700
const zclass4_speed = 190
const Float:zclass4_gravity = 1.0
const Float:zclass4_knockback = 0.5

new const zclass5_name[] = { "Alien Avatar" }
new const zclass5_info[] = { "HP- Knockback+ Leech++" }
new const zclass5_model[] = { "av_alien" }
new const zclass5_clawmodel[] = { "v_knife_alien.mdl" }
const zclass5_health = 1300
const zclass5_speed = 190
const Float:zclass5_gravity = 1.0
const Float:zclass5_knockback = 1.25
const zclass5_infecthp = 200 // extra hp for infections

new g_zclass_leech

public plugin_precache()
{
register_plugin("[Avatar] Classes", "1.5", "mix97mix")

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)
}

public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(infector) == g_zclass_leech)
set_pev(infector, pev_health, float(pev(infector, pev_health) + zclass5_infecthp))
}


how to i make class3 do this?

#include <amxmodx>
#include <engine>


#define PLUGIN "Fly"
#define VERSION "1.0"
#define AUTHOR "Stereo"


public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)

public
client_PreThink(id)
{
if(
is_user_alive(id) )
{
new
Float:fAim[3] , Float:fVelocity[3];
VelocityByAim(id , 250 , fAim);

if(!(
get_user_button(id) & IN_JUMP))
{
fVelocity[0] = fAim[0];
fVelocity[1] = fAim[1];
fVelocity[2] = fAim[2];

set_user_velocity(id , fVelocity);
}
}
return
PLUGIN_CONTINUE;
}

Thanks ;)

Last edited by mix97mix; 10-09-2011 at 08:46.
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-09-2011 , 08:57   Re: Help [ Avatar Mod ]
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=169067
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-09-2011 , 11:08   Re: Help [ Avatar Mod ]
Reply With Quote #3

Code:
register_plugin("[Avatar] Classes", "1.5", "mix97mix")
Really ??
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MiloSx7
Member
Join Date: Oct 2011
Location: Serbia, Nish
Old 10-09-2011 , 11:26   Re: Help [ Avatar Mod ]
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Code:
register_plugin("[Avatar] Classes", "1.5", "mix97mix")
Really ??
did i told that he is stealing plugins -.-

https://forums.alliedmods.net/showpo...95&postcount=5

And here is the PM that i got from him (translated to english)

Quote:
Originally Posted by mix97mix
I don't steal nothing now..Don't worry now I'm learning all alone -.-
__________________
MiloS
MiloSx7 is offline
Send a message via MSN to MiloSx7
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-09-2011 , 11:38   Re: Help [ Avatar Mod ]
Reply With Quote #5

php please.
http://forums.alliedmods.net/showthread.php?t=169067
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. 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 09:41.


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