Move Camera Help
#1

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
Reply
#2

Also i need the camera rotate on class selection... rep[+]

Thanks in advance
Reply
#3

Hey guys i solved this problem my self thanks

i just subtract the coordinates and it works fine.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)