Tutorial Problem
#1

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)