18.04.2009, 18:11
Hmm I onced made a small function that makes it easier:
instead of doing
setplayerpos
setplayerfacingangle
setcamerapos
setcameralookat
all you have to do is put the player pos and camera pos.....
there it is:
forward SetPlayerSelectionPos(playerid, Floatx, Floaty, Floatz, Floata, Float:cx, Float:cy, Float:cz);
public SetPlayerSelectionPos(playerid, Floatx, Floaty, Floatz, Floata, Float:cx, Float:cy, Float:cz)
{
SetPlayerPos(playerid, px, py, pz);
SetPlayerFacingAngle(playerid, pa);
SetPlayerCameraPos(playerid, cx, cy, cz);
SetPlayerCameraLookAt(playerid, px, py, pz);
}
instead of doing
setplayerpos
setplayerfacingangle
setcamerapos
setcameralookat
all you have to do is put the player pos and camera pos.....
there it is:
forward SetPlayerSelectionPos(playerid, Floatx, Floaty, Floatz, Floata, Float:cx, Float:cy, Float:cz);
public SetPlayerSelectionPos(playerid, Floatx, Floaty, Floatz, Floata, Float:cx, Float:cy, Float:cz)
{
SetPlayerPos(playerid, px, py, pz);
SetPlayerFacingAngle(playerid, pa);
SetPlayerCameraPos(playerid, cx, cy, cz);
SetPlayerCameraLookAt(playerid, px, py, pz);
}