Then it is compiled to a *.AMXX so amxmodx can read it.#include <amxmodx>
#include <engine>
#include <hamsandwich>
#define ADMIN_ACCESS_LEVEL ADMIN_IMMUNITY
#define CHECK_TIME 0.5
#define esf_get_ki(%1) entity_get_float(%1, EV_FL_fuser4)
#define esf_set_ki(%1,%2) entity_set_float(%1, EV_FL_fuser4, %2)
static const ESF_PDESCRIP[] = "ESF Admin Unlimited KI";
static const ESF_PVERSION[] = "2.1";
static const ESF_PAUTHORR[] = "tuty";
new ESF_pCvar;
public plugin_init()
{
register_plugin(ESF_PDESCRIP, ESF_PVERSION, ESF_PAUTHORR);
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
ESF_pCvar = register_cvar("esf_admin_unlimited_ki", "1");
}
public fwHamPlayerSpawnPost(iPlayer)
{
if(get_pcvar_num(ESF_pCvar) == 0)
return HAM_SUPERCEDE;
if(is_user_alive(iPlayer) && (get_user_flags(iPlayer) & ADMIN_ACCESS_LEVEL))
{
set_task(CHECK_TIME, "checkAdminKi", iPlayer , "", 0, "b");
}
return HAM_IGNORED;
}
public checkAdminKi(iPlayer)
{
if(!is_user_alive(iPlayer))
{
remove_task(iPlayer);
return PLUGIN_HANDLED;
}
esf_set_ki(iPlayer, floatmax(1000.0, esf_get_ki(iPlayer)));
return PLUGIN_CONTINUE;
}
All ESFs code is compiled into DLL files.ohhh...but uhh...what/where r the files of chars that could be edited somehow?if they thats possible...
(again i must say im apologizing for being noob for this just trying to learn more about ESF files Tnx^_^
What are you talking about. AMXX and everything thats using it is bound by the opensource licence. So unless you can strike a special deal with the AMXX makers themselves you are bound by international law to release the sourcecode along with your AMXX files. Thats how opensource works. The source code HAS to be accessible by the public.To be honnest it is good that there isnt a decompiler for amxx.
People who made the codes didnt give them away so its not for you or anyone else to use other peoples codes.
If you want to know what will be in the filename.amxx then maybe you can start to make your own codes. Its hard, I know it is because I am learning my self.
But I have a good guide and a great example what I use to increase my knowledge to code. Bit by bit very slowly I start to create new things and if it works yeah I am happy.
And all that hard work must be protected.