Hi.I have this plugin that teleport an player,where he aim!But when i'm teleporting i'm stuck in wall! I think i should use
trace_line,to block player when he hit wall, but dunno how to do that...
Code:
#include <amxmodx>
#include <fun>
#define PLUGIN "Teleport"
#define VERSION "1.0"
#define AUTHOR "Alka"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /teleport","cmd_teleport");
}
public cmd_teleport(id) {
new origin[3]
get_user_origin(id,origin,3)
set_user_origin(id,origin)
}
Can someone show me how to do that?
Thanks...
__________________