AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [INC] ESF Stock (https://forums.alliedmods.net/showthread.php?t=64915)

hip_hop_x 12-27-2007 10:39

[INC] ESF Stock
 
1 Attachment(s)
Version 1.2
-added esf_player_class(id) thanks to Zenith77

Since all the functions for esf didn't work, because there's no module, in 1.80 atleast, I decided to make some stocks of some usefull esf commands.
Tested with 1.23

Usage
esf_get_ki(id) - get's player ki
esf_set_ki(id,1000) - set's player ki, max ki is at 1000, over that will increase the ki bar!
esf_get_powerlevel(id) - get's the powerlevel, the numbers from the ki bar
esf_set_powerlevel(id,940000) - you can set as much as you want, but if you have a bigger powerlevel you do more damage, and sometimes if it's too big, you suicide
esf_get_acpl(id) - get's actual powerlevel
esf_set_acpl(id,940000) - set's actual powerlevel
esf_get_maxhealth(id) - max health
esf_set_maxhealth(id, 1000) - set's the maxhealth, over 1000 health bar exchanges

NEW esf_player_class(id) - get's the class of a player, returns a string (buu,goku,gohan,krillin,frieza,piccolo,trunks ,vegeta,cell)
NEW(updated) esf_player_modelclass(id) //changed from esf_player_class
Code:
The classes of esf_player_modelclass     ESFC_NOCLASS = 0,     ESFC_VEGETA     ESFC_CELL     ESFC_BUU     ESFC_FRIEZA     ESFC_GOHAN     ESFC_GOKU     ESFC_KRILLIN     ESFC_PICCOLO     ESFC_TRUNKS if(esf_player_class(id) == ESFC_TRUNKS){ }

Suggestions are welcome.

Greenberet 12-30-2007 16:44

Re: [INC] ESF Stock
 
Quote:

Originally Posted by hip_hop_x (Post 567330)
Since all the functions for esf didn't work, because there's no module, in 1.80 atleast, I decided to make some stocks of some usefull esf commands.

because its not a module its a plugin with dynamic natives

hip_hop_x 12-30-2007 18:05

Re: [INC] ESF Stock
 
well, atleast on the amxmodx.org the esf functions should be updated with the existent ones.

Zero [UM-wFs] 08-14-2008 07:28

Re: [INC] ESF Stock
 
nice work dude

i hope you will update this inc with new functions (maybe i will help you with this xD)

hip_hop_x 08-14-2008 09:01

Re: [INC] ESF Stock
 
esf_stocks been updated, thanks Zero

tuty 12-28-2008 19:59

Re: [INC] ESF Stock
 
nice work man

i will use this on my plugins ;):up::up:

hleV 12-28-2008 21:43

Re: [INC] ESF Stock
 
Well, esf.inc which is included to default AMXX package has a lot more functions.

I see there's still no way found of setting custom player model without doing it on each server frame.

BTW nice to see that someone is using my userbar. ^^

hip_hop_x 12-29-2008 05:23

Re: [INC] ESF Stock
 
Quote:

Originally Posted by hleV (Post 734712)
Well, esf.inc which is included to default AMXX package has a lot more functions.

I see there's still no way found of setting custom player model without doing it on each server frame.

BTW nice to see that someone is using my userbar. ^^

The esf.inc it is included in the amxmodx default, but doesn't work lol they forgot to add the esf module. You can test something including esf.inc and you'll notice that.

tuty 12-29-2008 07:36

Re: [INC] ESF Stock
 
Code:

BTW nice to see that someone is using my userbar. ^^
sorry i will change it :P

hleV 12-29-2008 09:06

Re: [INC] ESF Stock
 
Quote:

Originally Posted by hip_hop_x (Post 734833)
The esf.inc it is included in the amxmodx default, but doesn't work lol they forgot to add the esf module. You can test something including esf.inc and you'll notice that.

They forgot nothing. Just enable EvolutionX.Core.amxx in your plugins.ini.
Quote:

Originally Posted by tuty (Post 734880)
Code:

BTW nice to see that someone is using my userbar. ^^
sorry i will change it :P

I think you just can't read. I said IT'S NICE that you use my userbar. Gosh...


All times are GMT -4. The time now is 21:41.

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