(objectid, &Float:RotX, &Float:RotY, &Float:RotZ)
objectid
The objectid of the object you want to get the rotation from.
&Float:X
The variable to store the X rotation, passed by reference.
&Float:Y
The variable to store the Y rotation, passed by reference.
&Float:Z
The variable to store the Z rotation, passed by reference.
new Float:RotX,Float:RotY,Float:RotZ;
GetObjectRot(objectid, RotX, RotY, RotZ);