[INC] ESF Stock

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1229
Gender:
United States of America

[INC] ESF Stock

Post by Archive-Poster »

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: Select all

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){ }
Attachments
esf_stock.inc.zip
(1.17 KiB) Downloaded 17 times
User avatar
Archive-Poster
Posts: 1229
Gender:
United States of America

Re: [INC] ESF Stock

Post by Archive-Poster »

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
User avatar
Archive-Poster
Posts: 1229
Gender:
United States of America

Re: [INC] ESF Stock

Post by Archive-Poster »

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.
User avatar
Archive-Poster
Posts: 1229
Gender:
United States of America

Re: [INC] ESF Stock

Post by Archive-Poster »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests