Raised This Month: $ Target: $400
 0% 

ESF and wanna add 1 extra Transformation or Powerup.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stephen
Senior Member
Join Date: Aug 2004
Old 05-13-2005 , 13:01   ESF and wanna add 1 extra Transformation or Powerup.
Reply With Quote #1

MEh

Thxerino
Stephen is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-14-2005 , 12:08  
Reply With Quote #2

Code:
#include <amxmodx> #include <fakemeta> #include <engine> new powerLimit[33] new COOLDOWN = 15 // represents how many seconds must pass untill player can use powerup again public plugin_init() { register_plugin("Powerup","0.1","Lynx") register_clcmd("power","powerup") return PLUGIN_CONTINUE } public powerup(id) { if ( powerLimit[id] !=0 ) { return PLUGIN_HANDLED } else { if ( entity_get_int( id, EV_INT_playerclass, 3) { new powerlevel = get_pdata_int(id, 460) // gets powerlevel set_pdata_int(id, 460, powerlevel + 25000 ) // current powerlevel + new set_pdata_int(id, 461, powerlevel + 25000 ) // current powerlevel + new set_task(COOLDOWN, "powerup_can",id) // sets task so you can be able to use again powerup after a specific period of time powerLimit[id] = 1 // powerup is used, can'be used again untill its 0 } else { } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public powerup_can(id) { powerLimit[id] = 0 // powerup now can be used return PLUGIN_HANDLED }

Btw, hi Stephen ^^
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Stephen
Senior Member
Join Date: Aug 2004
Old 05-14-2005 , 12:16  
Reply With Quote #3

Meh
Fixed
Stephen is offline
Stephen
Senior Member
Join Date: Aug 2004
Old 05-14-2005 , 12:36  
Reply With Quote #4

New LynX Request ^-^

How would you add a NEW extra Transformation JUST for Gohan ?
Just an Single one, where also lets PL grow ?
Also with some Effects.
- It should get an Extra Model and an Extra Trans Sound.
Basicly what EVM does. JUST for Gohan.
Nothing Fancy.
Stephen is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-14-2005 , 12:55  
Reply With Quote #5

erm, I think you got EvolutionSSJ4 source from Encore, right? Well if you did, just create a new "avatar" above your current model, and use this stuff...

Use entity_get_int for getting teh player class, etc.

Yeah, no time hearing, yep ^^
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Stephen
Senior Member
Join Date: Aug 2004
Old 05-14-2005 , 13:11  
Reply With Quote #6

Hmm.

So
Quote:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <fakemeta>
#include <engine>

new PLUGIN[]="Gohans'Power"
new AUTHOR[]="Stephen"
new VERSION[]="0.1"


public plugin_init()
{

register_plugin("PLUGIN","VERSION","AUTHOR")
register_clcmd("ascend","ascend")

return PLUGIN_CONTINUE

}

new avatars[33]]


public create_avatar(33)

{

avatars[id] = create_entity( "env_model" );
entity_set_int( avatars[id], EV_INT_movetype, MOVETYPE_FOLLOW );
entity_set_edict( avatars[id], EV_ENT_aiment, id );
entity_set_model( avatars[id], "modelpathhere.mdl" )

return PLUGIN_HANDLED
}
Is that to creat an new avatar ?

Just the Avatar stuff i mean, cause i just mixed that thing up right now >.<
I know its missing alot. But... You know
Stephen is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-15-2005 , 05:42  
Reply With Quote #7

Yes, that's how you create a avatar.
One more thing, DO NEVER, EVER register a "ascend" command, unless you know what you're doing. If you really want to register it, make something in plugin and see if its engaged. If its engaged, block it with PLUGIN_HANDLED and do stuff. If the "something" is NOT done, just continue normal thing with PLUGIN_CONTINUE
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Stephen
Senior Member
Join Date: Aug 2004
Old 05-15-2005 , 06:41  
Reply With Quote #8

Ok when i change the COmmand to lets say "avatar" then when i type that in the console an Avatar should appear ?

When the Path to teh Model is player/ssj2gohan/ssj2gohan.mdl

I also need to prechache then ?

And ive readed somewhere that i have to set the Visibilty of the Current Player to 0 or what was taht about.
Stephen is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-15-2005 , 07:34  
Reply With Quote #9

Yes, put ur model path into the entity_set_model. You must precache it, yes.

No, to set visibility of player use set_user_rendering for players and set_rendering for avatar(s) & entites.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
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 16:37.


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