30.03.2012, 05:13
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..
In this case i want to move camera from jobcenter to bank.can any one help me..to solve
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);
}
}