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.
__________________