first thing your codes are very complicated to understand... soo i created it in my style..i think you can understand it..its a very comman sence style
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "XP LEVEL EXAMPLE"
#define VERSION "1.0"
#define AUTHOR "[ZOF 'X]"
new User_XP[33];
new User_Level[33];
new const XP[] =
{
100,
200,
300,
400,
500
}
new const Level_Names[][] =
{
"Lvl 1",
"Lvl 2",
"Lvl 3",
"Lvl 4",
"Lvl 5"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /xp", "cmdXP");
register_clcmd("say_team /xp", "cmdXP");
}
public cmdXP(id)
{
client_print(id, print_chat, "Your Stats : %s | XP : %d / %d", Level_Names[User_Level[id]], User_XP[id], XP[User_Level[id]+0])
}
__________________