SA-MP Forums Archive
Problem with SetPlayerCameraPos on tutorial - help please - 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: Problem with SetPlayerCameraPos on tutorial - help please (/showthread.php?tid=131569)



Problem with SetPlayerCameraPos on tutorial - help please - buonggiorno - 04.03.2010

Hi to all, i make tutorial and add SetPlayerCameraPos to look at some objects, after tutorial finish, and player spawn, camera didnt turn off, i see the same picture like last SetPlayerCameraPos and on radar a see that i can move character in game, but camera didint disapire how to fix it? tnx a lot


Re: Problem with SetPlayerCameraPos on tutorial - help please - Mystique - 04.03.2010

Try this one.

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


Re: Problem with SetPlayerCameraPos on tutorial - help please - buonggiorno - 04.03.2010

Quote:
Originally Posted by Mystique
This helped....tnx )


Re: Problem with SetPlayerCameraPos on tutorial - help please - [MWR]Blood - 04.03.2010

forward DynUpdateStart(playerid);
forward DynUpdateEnd(playerid);
public DynUpdateStart(playerid)
{
SetPlayerCameraPos(playerid,-807.2981,1565.3751,47.4949);
SetPlayerCameraLookAt(playerid,-791.2880,1556.3445,32.9193);
SetTimerEx("DynUpdateEnd", 5000, 0,"e",playerid);
return 1;
}
public DynUpdateEnd(playerid)
{
TogglePlayerControllable(playerid,true);
SetCameraBehindPlayer(playerid);
return 1;
}



Is this working?Remember to change the coordinates.