Code:
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Drak"
#define NUM_XP 50
new const say_command[] = "/something"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say","say_handle")
}
public say_handle(id)
{
new text[512]
read_args(text,512)
remove_quotes(text)
if(equal(text,say_command))
{
new name[36]
get_user_name(id,name,36);
server_cmd("w3_givexp ^"%s^" %i",name,NUM_XP)
}
}
Change "/something" at the top to whatever you want.
I have no idea how you can give a person experience, since i never used warcraft or whatever. But i'm sure there's a server command for it, just let me know what it is.
__________________