Code:
#include <amxmodx>
new fwd_give_xp = -1;
public plugin_init()
{
fwd_give_xp = CreateMultiForward("give_xp", ET_IGNORE, FP_CELL, FP_CELL, FP_CELL, FP_STRING);
register_clcmd("say /forward", "cmdForward");
}
public cmdForward(id)
{
if(fwd_give_xp > -1)
{
new fwd_result;
ExecuteForward(fwd_give_xp, fwd_result, id, 100, 1, "ZOMG");
}
return PLUGIN_HANDLED;
}
public give_xp(id, amount, type, reason[])
{
client_print(id, print_chat, "%i %i %i %s", id, amount, type, reason);
}