Raised This Month: $ Target: $400
 0% 

Teleporting Native


Post New Thread Reply   
 
Thread Tools Display Modes
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
Old 08-30-2009, 12:15
xPaw
This message has been deleted by xPaw. Reason: Nevermind.
Reply



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