Quote:
Originally Posted by .Dare Devil.
PHP Code:
public plugin_init () { register_clcmd ( "xpmod_give_xp", "transfer_xp") }
public transfer_xp(id) { new name[32], xpamount[32], target read_argv(1, name, charsmax (name)) read_argv(2, xpamount, charsmax (xpamount)) target = cmd_target (id, name, 3) if (!target) return PLUGIN_HANDLED
g_yourxpvariable[target] = xpamount return PLUGIN_HANDLED }
|
That doesn't transfer xp. It just sets xp for the target. You need to check for number of arguments also.
Also, don't do it for him (especially when you do it wrong). This forum is called "Scripting Help" and not "Do This For Me Forum".
__________________