Raised This Month: $ Target: $400
 0% 

Error get_user_origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
javinuevo
Junior Member
Join Date: Apr 2013
Old 02-08-2016 , 14:29   Error get_user_origin
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /tp""teletransporte")
}
public 
teletransporte(id)
{
    
get_user_origin(idposicion[id], 1);
    
set_user_origin(idposicion[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.
javinuevo is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode