Hi, this is my code:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new posicion[33][3];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /tp", "teletransporte")
}
public teletransporte(id)
{
get_user_origin(id, posicion[id], 1);
set_user_origin(id, posicion[id]);
}
So that means that when I say /tp on chat I must be teleported to the place where my weapon(crosshair) is looking, but it teleport at the same place where I am but with about 10 more unities on Z var
Help plz, Thank you.