SA-MP Forums Archive
Tutorial Problem - 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: Tutorial Problem (/showthread.php?tid=176002)



Tutorial Problem - Gforcez - 11.09.2010

Hello, Iam busy with a New RP Script, but, i have a problem in my Tutorial system:

Look this is the code:

Код:
public ShowTutorialForPlayer(playerid)
{
	if(PlayerInfo[playerid][pTutorial] == 0)
	{
		if(TutorialStep[playerid] == 1)
		{
			SetPlayerPos(playerid, -1408.8739, 797.3781, 47.2410);
		    SetPlayerCameraLookAt(playerid, -1633.5067, 804.0861, 58.4063);
			SetPlayerCameraPos(playerid, -1408.8739, 797.3781, 47.2410);

			SendClientMessage(playerid, COLOR_RED, "[ServerMSG]: Tutorial Step 1: Introducion");
			
			SetTimerEx("NexStepFromTutorial", 10000, 0, "d", playerid);
		}
		if(TutorialStep[playerid] == 2)
		{
		    // Rest
		    
		    SetTimerEx("NexStepFromTutorial", 10000, 0, "d", playerid);
		}
		if(TutorialStep[playerid] == 3)
		{
		    // Rest
		    
		    SetTimerEx("NexStepFromTutorial", 10000, 0, "d", playerid);
		}
		if(TutorialStep[playerid] == 4)
		{
		    // Rest
		    
		    SetTimerEx("NexStepFromTutorial", 10000, 0, "d", playerid);
		}
		if(TutorialStep[playerid] == 5)
		{
		    // Rest
		    
           SetTimerEx("PlayerFinishtTutorial", 5000, 0, "d", playerid);
		}
	}
	return 1;
}
the problem is, Its shows the message: [ServerMSG]: Tutorial Step 1: Introducion, But don't set the camera pos, or the Lookat pos....

Does anyone know?


Re: Tutorial Problem - RSX - 11.09.2010

As far as i know, it may be connected with player pos, so try setting it too. But if you don't do it right >> You FAIL as vallahala, where you can overlap 2 tutorials (Starting one and random one) and get a teleport to anywhere. Well that's a sad fail you all maybe can now use to sabotage them. It lets you out of prison too. So basicly - Keep it in reality when making more than one tutorial.