(objectid, &Float:X, &Float:Y, &Float:Z)
objectid
The ID of the object to get the position of..
&Float:X
A variable in which to store the X coordinate, passed by reference.
&Float:Y
A variable in which to store the Y coordinate, passed by reference.
&Float:Z
A variable in which to store the Z coordinate, passed by reference.
new Float:x, Float:y, Float:z;
GetObjectPos(objectid, x, y, z);