Hey, warum wird meine Kamera nicht gesetzt beim OnPlayerConnect
Normalerweise sollte das Funktionieren, da es bei anderen Scripts auch geht.
Code:
public OnPlayerConnect(playerid)
{
//Map Icons
SetPlayerMapIcon(playerid, 29, 203.4525,-203.0107,1.5781, 52, 0, MAPICON_LOCAL);
SetPlayerMapIcon(playerid, 30, 627.6815,-583.2418,38.6886, 52, 0, MAPICON_LOCAL);
SetPlayerMapIcon(playerid, 8,681.6605,-463.1511,22.7471, 52, 0, MAPICON_LOCAL);
//Werkstatt
RemoveBuildingForPlayer(playerid, 13298, 207.8047, -249.1484, 7.0938, 0.25);
RemoveBuildingForPlayer(playerid, 781, 196.7734, -267.6016, 0.4531, 0.25);
RemoveBuildingForPlayer(playerid, 13295, 207.8047, -249.1484, 7.0938, 0.25);
RemoveBuildingForPlayer(playerid, 13437, 210.9375, -245.1406, 10.0234, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 215.0000, -224.0000, 2.0234, 0.25);
//Spawn
RemoveBuildingForPlayer(playerid, 1438, 244.4453, -163.2969, 0.5469, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 255.0234, -154.1563, 1.0625, 0.25);
if(sSpieler[playerid][pBan] == 2)
{
Kick(playerid);
}
else
{
if(IsPlayerNPC(playerid)) return 1;
if(sSpieler[playerid][pLogin] == 0)
{
ClearChat(playerid);
new Spieler[64];
new nachricht1[128];
TextDrawShowForPlayer(playerid, uhrzeitLabel);
new Sname[MAX_PLAYER_NAME];
if(IsPlayerNPC(playerid)) return 1;
GetPlayerName(playerid,Sname,sizeof(Sname));
format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",Sname);
format(nachricht1, sizeof(nachricht1),"[Admin-Message] %s [%d] hat den Server betreten!",Sname, playerid);
SendAdminMessage(0xFA00FFFF,nachricht1);
SetPlayerCameraPos(playerid,216.9981,-141.2416,30.8828);
SetPlayerCameraLookAt(playerid,250.1583,-157.5701,1.5703);
if(dini_Exists(Spieler))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login"," {FFFFFF}Dein {EB0000}Account {FFFFFF}wurde auf unserem {EB0000}Server {FFFFFF} gefunden, bitte gebe nun dein {EB0000}Passwort {FFFFFF} ein! {FFFFFF}","Bestätigen","Abbrechen");
SpielerLaden(playerid);
return 1;
}
else
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren"," {FFFFFF}Bitte wähle ein {EB0000}Passwort {FFFFFF}für deinen Account! {FFFFFF}","Auswählen","Abbrechen");
//return 1;
}
}
}
return 1;
}