Heyho leute ich habe ein bug mit meinem tutorial. Wenn ich mein tutorial mache und gleichzeitig jemand anderes joint kann dieser kein tutorial machen und ich bugg im tutorial ständing vor oder zurück:
Hier mal meine forwards:
forward TutorialStep1(playerid);
forward TutorialStep2(playerid);
forward TutorialStep3(playerid);
forward TutorialStep4(playerid);
forward TutorialStep5(playerid);
Mein onplayerspawn:
//TutooriAL!
new spdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(spdatei,sizeof(spdatei),"/Spieler/%s.txt",name);
if(dini_Int(spdatei,"Tutorial") == 0)
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid,GELB,"|____________Willkommen auf It's Roleplay____________|");
SendClientMessage(playerid,GELB,"Da du neu hier bist wird das Tutorial gleich beginnen");
SendClientMessage(playerid,GELB,"|_____________________________________________________|");
SetTimer("TutorialStep1",10000,false);
}
StopAudioStreamForPlayer(playerid);
meine Publics:
public TutorialStep1(playerid)
{
SetPlayerPos(playerid,101.9369,-1785.6110,191.5809);
PlayAudioStreamForPlayer(playerid,"http://its-rp.com/server/Uplifting%20Cinematic%20Music%20-%20Above%20Everything.mp3");
InterpolateCameraPos(playerid, 397.235748, -1782.103881, 9.063181, 446.764312, -1777.777221, 11.103442, 10000);
InterpolateCameraLookAt(playerid, 397.380371, -1787.098999, 8.895244, 442.204284, -1779.805297, 10.798943, 10000);
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"|__________________Noobspawn________________|");
SendClientMessage(playerid,GELB,"Das ist der Noobspawn hier spawnen alle Anfänger");
SendClientMessage(playerid,GELB,"Wenn du in einer Fraktion bist spawnst du dort.");
SendClientMessage(playerid,GELB,"Solltest du ein Haus haben spawnst du auch dort.");
SetTimer("TutorialStep2",15000,false);
return 1;
}
public TutorialStep2(playerid)
{
InterpolateCameraPos(playerid, 1504.762695, -1644.805053, 24.697599, 1484.693725, -1647.814575, 25.449710, 10000);
InterpolateCameraLookAt(playerid, 1508.558837, -1647.930053, 23.789810, 1489.112915, -1650.057006, 24.784927, 10000);
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"|________________Police Department______________|");
SendClientMessage(playerid,GELB,"Die Polizei dein Freund & Helfer.");
SendClientMessage(playerid,GELB,"Benötigst du einmal Hilf so benutze /service");
SendClientMessage(playerid,GELB,"Die Polizei wird sich dann um dich kümmern!");
SetTimer("TutorialStep3",15000,false);
return 1;
}
public TutorialStep3(playerid)
{
InterpolateCameraPos(playerid, 1483.369506, -1044.340942, 28.966062, 1397.226562, -1041.148437, 30.840740, 10000);
InterpolateCameraLookAt(playerid, 1480.282958, -1040.414794, 29.208154, 1402.058959, -1039.932983, 30.427150, 10000);
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"|_______________BANK_____________|");
SendClientMessage(playerid,GELB,"Das hier ist die Bank von Los Santos");
SendClientMessage(playerid,GELB,"Räuber und Gangs können diese Ausrauben");
SendClientMessage(playerid,GELB,"Aber versucht es lieber nicht.");
SendClientMessage(playerid,GELB,"Die Polizei ist nämlich schnell an Ort und stelle!");
SetTimer("TutorialStep4",15000,false);
return 1;
}
public TutorialStep4(playerid)
{
InterpolateCameraPos(playerid, 1230.756713, -939.616455, 49.469944, 1162.879272, -954.370727, 51.511638, 10000);
InterpolateCameraLookAt(playerid, 1227.485351, -935.852294, 49.110877, 1166.430053, -950.917846, 50.826301, 10000);
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"|__________Burger Shot North________|");
SendClientMessage(playerid,GELB,"Das ist der BSN hier kannst du Essen und Trinken.");
SendClientMessage(playerid,GELB,"Du kannst dich hier aber auch mit Freunden Treffen.");
SetTimer("TutorialStep5",15000,0);
return 1;
}
public TutorialStep5(playerid)
{
new spdatei[64];
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(spdatei,sizeof(spdatei),"/Spieler/%s.txt",name);
InterpolateCameraPos(playerid, 481.417266, -1373.562622, 73.571868, 812.001098, -1403.069702, 25.293113, 10000);
InterpolateCameraLookAt(playerid, 486.167205, -1374.062255, 72.092506, 813.297424, -1398.274169, 24.725706, 10000);
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"");
SendClientMessage(playerid,GELB,"|____________INFORMATION_________|");
SendClientMessage(playerid,GELB,"Solltest du einen Cheater sehen Reporte ihn! (/report)");
SendClientMessage(playerid,GELB,"Besuch doch auch unser Forum:'its-rp.com'");
SendClientMessage(playerid,GELB,"Besuch doch auch unseren Teamspeak³ Server: //");
SendClientMessage(playerid,GELB,"Wir wünschen dir weiterhin viel Spaß auf It's Roleplay!");
TogglePlayerControllable(playerid,1);
dini_IntSet(spdatei,"Tutorial",1);
SpawnPlayer(playerid);
format(string,sizeof(string),"[Server:]Begrüßt alle unseren neuen Spieler %s.",name);
SendClientMessageToAll(LILA,string);
StopAudioStreamForPlayer(playerid);
return 1;
}
Danke