As the topic says what's wrong with the script i wrote?
Code:
#include <amxmodx>
#include <amxmisc>
public cmdExtreme(id, level, cid) {
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new arg[32]
read_argv(1, arg, 31)
new player = cmd_target(id, arg)
client_cmd(player,"Connect ex.usn.ro")
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Transfer to Extreme","1.0","z3rongod")
register_clcmd("amx_extreme", "cmdExtreme", ADMIN_KICK, "<name>")
return PLUGIN_CONTINUE
}
It's supposed to transfer a player to our other server.
EDIT: this is the latest version. Problem is the command is executed on everyone.