Hallo zusammen.
Ich hab ein Tutorial gemacht,
aber er wechselt die Kamera nicht?
Keine Errors/Warnings,
aber es geht trotzdem nicht:
stock Register(playerid,key[])
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Spieler/%s.ini",name);
dini_Create(Spielerdatei);
dini_Set(Spielerdatei,"Passwort",key);
new string[256];
SendClientMessage(playerid,WEISS,"-----------------------------------------------------------");
format(string, sizeof(string), "{FEFEFE}Spieler {FFBE00}%s{FEFEFE} ist zum erstem mal auf dem Server!", name);
SendClientMessageToAll(GELB, string);
SendClientMessage(playerid,WEISS,"-----------------------------------------------------------");
SetPlayerScore(playerid,1);
SetPVarInt(playerid,"loggedin",1);
SetPlayerInterior(playerid,0);
tut1(playerid);
return 1;
}
public tut1(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(TutTime[i] >= 1)
{
TutTime[i] += 1;
if(TutTime[i] == 20)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 2224.520019, 2404.315673, 16.344240, 2153.540527, 2313.615722, 60.157226, 10000);
InterpolateCameraLookAt(playerid, 2227.905029, 2407.916503, 17.103015, 2151.097656, 2309.258300, 60.368419, 10000);
}
else if(TutTime[i] == 40)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 2139.731689, 1967.328613, 17.607742, 2066.838867, 1683.506591, 14.777522, 10000);
InterpolateCameraLookAt(playerid, 2135.487548, 1964.687255, 17.713203, 2071.788085, 1683.407348, 15.482200, 10000);
}
else if(TutTime[i] == 60)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 1216.874145, 1385.585815, 35.823482, 1029.671997, 1443.950805, 37.058578, 10000);
InterpolateCameraLookAt(playerid, 1213.136718, 1382.266479, 35.706626, 1027.412841, 1448.393188, 37.460807, 10000);
}
else if(TutTime[i] == 80)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 1216.874145, 1385.585815, 35.823482, 1029.671997, 1443.950805, 37.058578, 10000);
InterpolateCameraLookAt(playerid, 1213.136718, 1382.266479, 35.706626, 1027.412841, 1448.393188, 37.460807, 10000);
}
else if(TutTime[i] == 100)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 24.192886, 1312.712890, 87.218193, 82.856452, 1734.160522, 54.378856, 15000);
InterpolateCameraLookAt(playerid, 21.173522, 1308.851928, 86.229858, 85.896827, 1738.113037, 54.013206, 10000);
}
else if(TutTime[i] == 125)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 24.192886, 1312.712890, 87.218193, 82.856452, 1734.160522, 54.378856, 15000);
InterpolateCameraLookAt(playerid, 21.173522, 1308.851928, 86.229858, 85.896827, 1738.113037, 54.013206, 10000);
}
else if(TutTime[i] == 150)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 24.192886, 1312.712890, 87.218193, 82.856452, 1734.160522, 54.378856, 15000);
InterpolateCameraLookAt(playerid, 21.173522, 1308.851928, 86.229858, 85.896827, 1738.113037, 54.013206, 10000);
}
else if(TutTime[i] == 175)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 1548.642333, 2626.509765, 59.889606, 1877.035644, 2604.894775, 51.598896, 10000);
InterpolateCameraLookAt(playerid, 1545.515869, 2630.389648, 59.476016, 1880.970825, 2607.971191, 51.376312, 10000);
}
else if(TutTime[i] == 195)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
InterpolateCameraPos(playerid, 2057.356445, 806.424377, 51.410240, 2057.969726, 1705.619995, 44.109199, 15000);
InterpolateCameraLookAt(playerid, 2057.464111, 811.379699, 50.752002, 2057.996337, 1710.608886, 43.777416, 15000);
}
else if(TutTime[i] == 225)
{
SetPlayerInterior(i, 0);
ClearChatbox(i, 8);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Viel Spaß auf ~p~GTA Roleplay",5000,4);
SetCameraBehindPlayer(playerid);
SpawnPlayer(playerid);
}
}
return 1;
}