[Help] Spawning after intro/register
#1

Hello again I have another problem with spawning after my "Intro" i created textdraws to say something about places like Bank, Police, Hall and others now I'll say whats my problem I made that and in last timer all fucked u I mean player wont spawn here are the codes:
Код:
forward Tutorial(playerid);
public Tutorial(playerid)
{
TextDrawShowForPlayer(playerid, tutor0);
TextDrawShowForPlayer(playerid, tutor1);
TextDrawShowForPlayer(playerid, tutor2);
TextDrawShowForPlayer(playerid, tutor3);
TextDrawShowForPlayer(playerid, tutor4);
ClChat(playerid);
SetPlayerPos(playerid, 1442.8569,-1802.8149,33.4297);
SetPlayerCameraPos(playerid, 1539.14, -1712.85, 32.27);
SetPlayerCameraLookAt(playerid, 1536.02, -1716.75, 32.02);
SetTimerEx("Tut1",10000,false,"d",playerid);
return 1;
}
Timers:
Код:
forward Tut1(playerid);
public Tut1(playerid)
{
TextDrawHideForPlayer(playerid, tutor3);
TextDrawHideForPlayer(playerid, tutor4);
TextDrawShowForPlayer(playerid, tutor5);
TextDrawShowForPlayer(playerid, tutor6);
ClChat(playerid);
SetPlayerPos(playerid, 1503.9056,-1665.3107,14.0469);
SetPlayerCameraPos(playerid, 1516.06, -1664.90, 24.85);
SetPlayerCameraLookAt(playerid, 1520.86, -1666.09, 25.60);
SetTimerEx("Tut2",10000,false,"d",playerid);// sovim pozivas drugi tut
	return 1;
}

forward Tut2(playerid);
public Tut2(playerid)
{
TextDrawHideForPlayer(playerid, tutor5);
TextDrawHideForPlayer(playerid, tutor6);
TextDrawShowForPlayer(playerid, tutor7);
TextDrawShowForPlayer(playerid, tutor8);
ClChat(playerid);
SetPlayerCameraPos(playerid, 1522.35, -1039.92, 34.33);
SetPlayerCameraLookAt(playerid, 1518.22, -1037.12, 33.97);
SetPlayerPos(playerid, 1512.8671,-1038.9019,23.6274); //
SetTimerEx("Tut3",10000,false,"d",playerid);// s ovim pozivas treci tut
	return 1;
}

forward Tut3(playerid);
public Tut3(playerid)
{
TextDrawHideForPlayer(playerid, tutor7);
TextDrawHideForPlayer(playerid, tutor8);
TextDrawHideForPlayer(playerid, tutor0);
TextDrawHideForPlayer(playerid, tutor1);
TextDrawHideForPlayer(playerid, tutor2);
SpawnPlayer(playerid);
ClChat(playerid);
	return 1;
}
That will be it I think everything is good but when tutorial finishes I just got stuck eery time in last cameraposition :\ Someone? Help?
Reply
#2

Try using SetCameraBehindPlayer after spawning them.
Reply
#3

Heres the result: http://www.zaslike.com/files/2syvxhjm8iajq0vn85t.png just flying
Reply
#4

You moved the player to the Tut2 position but spawned them and left them there in Tut3.
Reply
#5

Hw to fix that man? Tut3 is just for spawning player....
Reply
#6

Before SpawnPlayer add in a SetSpawnInfo, that should work.
Reply
#7

@Johanson DUDEE U ARE MY HEROOOO!!! THANKS DUDE UR THE BEST! PROBLEM SOLVED! <3 U have REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)