SA-MP Forums Archive
Camera Help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Camera Help! (/showthread.php?tid=224731)



Camera Help! - [MKD]Max - 12.02.2011

Hello guys im have made a TDM gamemode but i dont know how to put camera look at the skin help! and tell me anything and thanks


Re: Camera Help! - Mean - 12.02.2011

https://sampwiki.blast.hk/wiki/SetPlayerCameraPos


Re: Camera Help! - antonio112 - 12.02.2011

Well, you should have something like:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos( playerid, 1543.9497, -1353.1797, 329.4745 );
    SetPlayerCameraPos( playerid, 1516.3965, -1676.6370, 29.6441 );
    SetPlayerCameraLookAt (playerid, 1552.7390, -1675.4622, 16.1953 );
    return 1;
}
SetPlayerPos - Sets where the characters through which you 'scroll' are
SetPlayerCameraPos - Where the camera is positioned ... you should put it close to the character, so you can see it.
SetPlayerCameraLookAt - You put the SetPlayerPos coordinates, since you want the camera to look at that position.