Raised This Month: $ Target: $400
 0% 

Teleporting Native


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-30-2009 , 12:10   Teleporting Native
Reply With Quote #1

Code:
public plugin_natives()         register_native("SetLocation", "_SetLocation", 1);
The one I need, doesn't work (it teleports me somewhere else):
Code:
public _SetLocation(Client, Float:Location[3])         entity_set_vector(Client, EV_VEC_origin, Location);
Code:
native SetLocation(Client, Float:Location[3]);
The one I don't need, works:
Code:
public _SetLocation(Client, Float:X, Float:Y, Float:Z) {         static Float:Location[3];         Location[0] = X;         Location[1] = Y;         Location[2] = Z;           entity_set_vector(Client, EV_VEC_origin, Location); }
Code:
native SetLocation(Client, Float:X, Float:Y, Float:Z);
I need to know if it's possible to do that with the first method.
__________________
hleV is offline
 


Thread Tools
Display Modes

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 15:12.


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