Sehr geehrte Breadfish Community ,
Ich hätte dort mal eine Frage, unzwar hab ich ein Aktuellen alten bekannten script mir unter die Lupe genommen. und möchte dort eine Sachen Einflügen.
Ich möchte ein Lied abgespielt bekommen , indem das Tutorial läuft soll im Hintergrund ein Musik abgespielt werden.
Es kann durch eine MP3 order sein oder durch Youtube URL , wäre nett ein einer mir dabei behilflich sein kann.
PlayerTextDrawSetString(playerid,Tut[3],"Der richtige Sound");
format(string,sizeof(string),"Hallo ~r~%s!~w~~n~Dies ist der Start des Tutorials!~n~Um eine bestmoegliche Qualitaet zu erzeugen,~n~drehe bitte deinen Radio Sound auf!~n~Dafuer hast du nun 10 Sekunden Zeit!",GetName(playerid));
PlayerTextDrawSetString(playerid,Tut[4],string);
SendClientMessage(playerid, COLOR_ERRORTEXT, "{FF0000}Info: {FFFFFF}Hallo Lieber Neuling und willkommen bei uns!");
SendClientMessage(playerid, COLOR_ERRORTEXT, "{FF0000}Info: {FFFFFF}Um eine best mögliche Qualität zu erzeugen stelle deine Lautstärke hoch!");
SendClientMessage(playerid, COLOR_ERRORTEXT, "{FF0000}Info: {FFFFFF}Dafür hast du nun 10 Sekunden Zeit!");
TogglePlayerControllable(playerid,0);
presenttimer[playerid] = SetTimerEx("Tutorialvv",10000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv(playerid)
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://www.Istanbul Roleplay.de/tutorial.mp3");
PlayerInfo[playerid][pReg] = 1;
SpamChat(playerid);
TextDrawHideForPlayer(playerid,Website);
InterpolateCameraPos(playerid, 1374.416503, -831.594116, 74.183662, 1356.661621, -1009.244445, 62.016746, 20000);
InterpolateCameraLookAt(playerid, 1373.866210, -836.563415, 74.125068, 1356.221435, -1014.210021, 61.630413, 20000);
SetPlayerPos(playerid, 1481.7736,-655.7400,91.7969);
TogglePlayerControllable(playerid,0);
SpamChat(playerid);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Willkommen");
format(string,sizeof(string),"Herzlich Willkommen ~r~%s!~w~~n~Dies ist das Tutorial von Istanbul Roleplay!~n~Wir weisen dich nun in alles wichtige ein!~n~Lies dir alles gut durch!",GetName(playerid));
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv2",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv2(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 924.971191, -1593.999511, 35.716350, 953.975524, -1635.620361, 25.270929, 4000);
InterpolateCameraLookAt(playerid, 926.632568, -1598.617675, 34.761318, 954.217590, -1640.455932, 24.022558, 4000);
SetPlayerPos(playerid, 990.7752,-1643.0874,14.7081);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Zivispawn");
format(string,sizeof(string),"Hier ist der Los Santos Zivispawn.~n~Hier wirst du spawnen solange du kein Haus hast.~n~Miete dich am besten in ein Hotel ein.");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv3",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv3(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 1688.044311, -1731.572265, 13.518147, 1481.863403, -1731.400268, 37.956077, 4000);
InterpolateCameraLookAt(playerid, 1683.047729, -1731.708129, 13.645478, 1481.717895, -1736.097290, 36.248195, 4000);
SetPlayerPos(playerid, 1550.0759,-1792.3463,13.0802);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Stadthalle/Arbeitsamt");
format(string,sizeof(string),"Hier ist die Los Santos Stadthalle.~n~Hier befindet sich auch das Arbeitsamt.~n~Nutze in der Stadthalle am Tresen /stadthalle.~n~Du kannst diese auch ausrauben!");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv4",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv4(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 1090.426757, -1397.608398, 16.679302, 975.982055, -1382.323242, 43.361938, 4000);
InterpolateCameraLookAt(playerid, 1086.633544, -1400.850341, 16.996915, 979.216003, -1385.684570, 41.561016, 4000);
SetPlayerPos(playerid, 1018.2417,-1418.0128,13.5613);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Autohauser");
format(string,sizeof(string),"Hier ist das Los Santos Autohaus.~n~Hier kannst du dir einen Mittelklasse Wagen kaufen.~n~Es gibt aber noch mehrere Autohauser.~n~Diese werden wir dir nun zeigen!~n~(Umlaute sind in Textdraws nicht moeglich! Nicht wundern!)");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv5",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv5(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 1800.660766, -1699.936767, 13.837416, 1762.820068, -1698.017944, 14.481630, 10000);
InterpolateCameraLookAt(playerid, 1796.806518, -1696.770019, 14.178565, 1767.568115, -1696.468017, 14.713585, 10000);
SetPlayerPos(playerid, 1809.9733,-1720.7690,13.5495);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Autohauser");
format(string,sizeof(string),"Hier ist das Los Santos Gebrauchtwagen Autohaus.~n~Hier kannst du dir einen Gebrauchtwagen kaufen.~n~Es gibt aber noch das Luxus Autohaus.~n~Dieses werden wir dir nun zeigen!");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv6",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv6(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, -1657.751098, 1211.998168, 14.123104, -1671.091064, 1210.495849, 14.643006, 10000);
InterpolateCameraLookAt(playerid, -1652.784301, 1212.539428, 13.929388, -1666.213012, 1211.575927, 14.449290, 10000);
SetPlayerPos(playerid, -1628.0465,1169.6774,7.1875);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Autohauser");
format(string,sizeof(string),"Hier ist das San Fierro Luxus Autohaus.~n~Hier kannst du dir ein Luxus Auto kaufen.~n~So ein Fahrzeug benoetigt jedoch viel Geld!~n~Das heisst das du wohl Arbeiten gehen musst.");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv7",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv7(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 1168.180664, -1160.199829, 106.454879, 1196.564941, -953.151916, 69.910186, 5000);
InterpolateCameraLookAt(playerid, 1168.880981, -1155.269287, 106.008598, 1196.942382, -948.902770, 67.302085, 5000);
SetPlayerPos(playerid, 1225.6835,-1024.7015,32.1683);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Burger Shot North");
format(string,sizeof(string),"Hier ist der Burger Shot North.~n~Hier kannst du Nahrung zu dir nehmen.~n~Du kannst auch den Drivein benutzten.~n~Dies geht schneller als an den Tresen zu gehen.~n~Meistens treffen sich hier auch Spieler!");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv8",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv8(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 1081.403686, -1367.450073, 26.826053, 1183.876220, -1377.500244, 29.301246, 4000);
InterpolateCameraLookAt(playerid, 1084.425781, -1363.481201, 26.486471, 1180.741088, -1373.694335, 28.473051, 4000);
SetPlayerPos(playerid, 1103.0403,-1304.0068,13.3357);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Das SAPD");
format(string,sizeof(string),"Hier ist das San Andreas Police Department.~n~Die Angestellten hier sind gut ausgebildete Polizisten.~n~Um dort rein zu kommen musst du dich im Forum Bewerben!");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv9",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv9(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 1376.372070, -1040.697021, 40.135219, 1452.992675, -1039.266845, 27.876876, 4000);
InterpolateCameraLookAt(playerid, 1380.739135, -1038.505981, 39.073066, 1455.173828, -1034.783813, 27.495998, 4000);
SetPlayerPos(playerid, 1431.5917,-1084.5153,17.5662);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Die Bank");
format(string,sizeof(string),"Hier ist die Los Santos Bank.~n~Hier kannst du viele verschiedene dinge machen.~n~Du kannst jede Bank bei uns ausrauben!");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv10",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv10(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 1486.427856, -2327.343505, 26.561023, 1473.407836, -2375.188476, 25.564832, 5000);
InterpolateCameraLookAt(playerid, 1481.962768, -2328.986816, 25.023832, 1469.935546, -2371.719970, 24.609800, 5000);
SetPlayerPos(playerid, 1408.7593,-2382.9270,13.5391);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Die Fahrschule");
format(string,sizeof(string),"Hier ist die Fahrschule.~n~Hier kannst du den Autoschein machen.~n~Melde dich dazu bei einem Lehrer.");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv11",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv11(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 898.610473, -991.363403, 70.914566, 996.717346, -948.354614, 41.844161, 5000);
InterpolateCameraLookAt(playerid, 903.126647, -989.380737, 70.094253, 999.589843, -944.265869, 42.020870, 5000);
SetPlayerPos(playerid, 1032.0229,-945.7168,42.6379);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Tankstellen");
format(string,sizeof(string),"Hier ist eine von vielen Tankstellen.~n~Dein Auto kannst du hier per /fill tanken.~n~Per /get fuel kannst du dir einen Kanister kaufen.~n~Diesen kannst du per /fillcar nutzten.");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv12",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv12(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 48.314338, -1576.680786, 12.173979, 102.669952, -1537.966064, 12.173979, 5000);
InterpolateCameraLookAt(playerid, 47.674404, -1571.743774, 11.708514, 97.722335, -1537.535888, 11.594302, 5000);
SetPlayerPos(playerid, 139.8024,-1513.2667,11.5309);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Zollstationen");
format(string,sizeof(string),"Hier ist einer von vielen Zollstationen.~n~Diesen kannst du per /zoll oeffnen.~n~Die Polizei kann diesen schliessen!");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv13",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv13(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 984.084533, -1856.336914, 13.063527, 841.328735, -1864.430419, 9.008193, 6000);
InterpolateCameraLookAt(playerid, 979.093750, -1856.120605, 13.276604, 841.303833, -1859.431762, 8.893220, 6000);
SetPlayerPos(playerid, 845.1511,-1847.8956,12.7972);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Safeboxen");
format(string,sizeof(string),"Hier ist eine von vielen Safeboxen.~n~Hier kannst du Sachen per /reinlegen reinlegen.~n~Per /rausnehmen kannst du sie wieder rausnehmen.");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv14",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv14(playerid)
{
SpamChat(playerid);
InterpolateCameraPos(playerid, 603.759338, -1166.643188, 45.656749, 547.953308, -1194.169921, 45.582622, 5000);
InterpolateCameraLookAt(playerid, 599.234436, -1168.768798, 45.573650, 550.961242, -1198.152954, 45.286411, 5000);
SetPlayerPos(playerid, 527.7475,-1177.1553,55.5159);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Viele Immobilien");
format(string,sizeof(string),"Hier ist eines von vielen Immobilien.~n~In Los Santos gibt es sehr viele davon.~n~Du brauchst viel Geld um dir ein Haus zu kaufen!");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv15",6000,0,"i",playerid);
return 1;
}
PUBLIC:Tutorialvv15(playerid)
{
InterpolateCameraPos(playerid, 1613.544921, -1005.964965, 97.594757, 1489.704833, -1030.506103, 48.996322, 6000);
InterpolateCameraLookAt(playerid, 1609.237915, -1007.595397, 95.647666, 1486.488281, -1033.887207, 47.201362, 6000);
SetPlayerPos(playerid, 1431.5917,-1084.5153,17.5662);
new string[256];
PlayerTextDrawShow(playerid,Tut[0]);
PlayerTextDrawShow(playerid,Tut[1]);
PlayerTextDrawShow(playerid,Tut[2]);
PlayerTextDrawShow(playerid,Tut[3]);
PlayerTextDrawShow(playerid,Tut[4]);
PlayerTextDrawSetString(playerid,Tut[3],"Abschluss");
format(string,sizeof(string),"Wir hoffen dir hat die kleine Einfuehrung gefallen.~n~Solltest du noch fragen habe nutzte /sup.~n~Wir wuenschen dir Viel Spass auf dem Server!");
PlayerTextDrawSetString(playerid,Tut[4],string);
presenttimer[playerid] = SetTimerEx("Tutorialvv16",6000,0,"i",playerid);
return 1;
}
Hier ist die Tutorial Programmierung , wo muss ich das machen kann mir jemand dabei helfen ?
Mit Freundlichen Grüßen