Move 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)
+--- Thread: Move Camera Help (
/showthread.php?tid=329772)
Move Camera Help -
Harish - 30.03.2012
Hi Comunity.,I need a small help . I made some tutorial script which the server will shows the shops bank jobcenter 24/7 etc.. when he first visit to my server. all works fine.but i want to move camera instead of setting pos of camera..any one can help me to solve this..
pawn Код:
OnPlayerConnect(playerid)
{
if(FirstVisit[playerid]==1)
{
SetTimerEx("Tutorial",10000,1,"i",playerid);
tutcoutn[playerid]=1;
}
}
Tutorial(playerid)
{
tutcount[playerid]+=1;
if(tutcount[playerid] == 1)
{
TogglePlayerControllable(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,x,y,z);//jobcenter
SetCameraBehindPlayer(playerid);
}
if(tutcount[playerid] == 2)
{
TogglePlayerControllable(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,x,y,z);//bank
SetCameraBehindPlayer(playerid);
}
}
In this case i want to move camera from jobcenter to bank.can any one help me..to solve
Re: Move Camera Help -
Harish - 30.03.2012
Also i need the camera rotate on class selection... rep[+]
Thanks in advance
Re: Move Camera Help -
Harish - 02.04.2012
Hey guys i solved this problem my self thanks
i just subtract the coordinates and it works fine.