20.10.2009, 10:00
pawn Код:
new Float:PX, Float:PY, Float:PZ;
GetPlayerPos(playerid,PX,PY,PZ); //get current pos
SetPlayerCameraPos(playerid,PX,PY,PZ + 10.00); //set camera to current pos plus 10 on the z axis
GetXYInFrontOfPlayer(playerid,PX,PY,20); //do math to work out 20 units infront of the players x,y axes
SetPlayerCheckpoint(playerid, PX, PY, PZ, 3.00); //set the checkpoint 20 units infront (above math)
SetPlayerCameraLookAt(playerid,PX,PY,PZ); //look at 20 units infront (above math)
SetPlayerVirtualWorld(playerid, 1); //blah
TogglePlayerControllable(playerid,0); //blah