Ja ich wollte halt so das wen man connectet das die camera wo anderes hinzeigt aber jetzt ist mein problem es funktioniert erst nach einen restart und auch nur wen man währenddessen draufbleibt also nach einem relog zeigt er wieder das standart mässige an ich habe es vor mein login script getan hier mal der Codepublic OnPlayerConnect(playerid)
{
SetPlayerCameraPos(playerid,483.5166,-2086.7561,1.1220);
SetPlayerCameraLookAt(playerid,385.1163,-2036.1610,1.1220);
if(SpielerInfo[playerid][pBan] == 1)
{
new string[128];
format(string,sizeof(string),"Du bist gebannt!");
SendClientMessage(playerid,COLOR_SAMP,string);
Kick(playerid);
}
SpielerInfo[playerid][pTod] = 0;
SetTimerEx("UpdateArmedWeapon", 1000, 1, "%i", playerid);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 99);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 99);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 99);
PlayerPlaySound(playerid,1185,0.0,0.0,0.0);//1185
PlayerPlaySound(playerid,5461,0.0,0.0,0.0);
//----------------------Remove Buildings------------------------------------------
RemoveBuildingForPlayer(playerid, 985, 2497.4063, 2777.0703, 11.5313, 0.25);//Tor Lagerhalle LV
RemoveBuildingForPlayer(playerid, 986, 2497.4063, 2769.1094, 11.5313, 0.25);//Tor Lagerhalle LV
RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25); // Area 51 Zaun
RemoveBuildingForPlayer(playerid, 1344, 1878.6484, 683.7734, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1344, 1881.3828, 683.7734, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1879.0547, 698.9141, 10.7109, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1879.0547, 710.3359, 10.7109, 0.25);
RemoveBuildingForPlayer(playerid, 1343, 1885.4844, 683.7500, 10.5625, 0.25);
RemoveBuildingForPlayer(playerid, 1344, 1969.9453, 693.7422, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1343, 1976.6797, 693.7109, 10.5625, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1978.2031, 698.9141, 10.7109, 0.25);
RemoveBuildingForPlayer(playerid, 1343, 1969.2109, 712.7344, 10.5625, 0.25);
RemoveBuildingForPlayer(playerid, 1344, 1975.6953, 712.7031, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1978.2031, 710.0156, 10.7109, 0.25);
RemoveBuildingForPlayer(playerid, 1344, 1884.8359, 722.7031, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1344, 1882.1016, 722.7031, 10.6250, 0.25);
RemoveBuildingForPlayer(playerid, 1343, 1877.8828, 722.7344, 10.5625, 0.25);
//--------------------------------------------------------------------------------
//-----------------------Map Icons----------------------------------------------------
SetPlayerMapIcon( playerid,1, -1508.8934,2610.3311,55.8359,6, 0,0);
SetPlayerMapIcon( playerid,2, -315.5399,829.7759,14.2422,6, 0,0);
SetPlayerMapIcon( playerid,3, 285.3859,-41.7254,1001.5156,6, 0,0);
SetPlayerMapIcon( playerid,4, 2177.6426,961.6060,10.8203,6, 0,0);
SetPlayerMapIcon( playerid,5, 2539.4360,2083.9805,10.8203,6, 0,0);
//------------------------GangZonen ----------------------------------------------------------------
GangZoneShowForPlayer(playerid,friedhofzone,0xC0C0C00A);
//---------------------------------------------------------------------------
TextDrawShowForPlayer(playerid,RealClock);
TextDrawShowForPlayer(playerid,Version);
new Spielerdatei[64] ;
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format (Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
if(dini_Exists(Spielerdatei))
{
new Textstring[256];
format(Textstring,sizeof(Textstring)," Willkommen zurück {EE7777}%s",name);
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,Textstring);
SendClientMessage(playerid,COLOR_SAMP," Bitte warte. Spielerdatei wird geladen ...");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{EE7777}>> Login","Willkommen zurück auf{EEEE88}'LV-Reallife'{A9C4E4}\nGib bitte dein Passwort ein.","Login","Abbrechen");
SetPlayerColor(playerid, COLOR_WHITE);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"");
SendClientMessage(playerid,COLOR_SAMP,"Account nicht vorhanden. Bitte registriere dich.");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{EE7777}>> Registrieren","Willkommen auf{EEEE88} 'LV-Reallife'.{FFFFFF}\nGib bitte das gewünschte Passwort ein.","Login","Abbrechen");
SetPlayerScore(playerid,1);
SpielerInfo[playerid][pGunLic] = 0;
SpielerInfo[playerid][pvisum] = 0;
SpielerInfo[playerid][pBan] = 0;
SpielerInfo[playerid][pChemikalien] = 0;
SpielerInfo[playerid][pSprengstoff] = 0;
GivePlayerMoney(playerid,5000);
SetPlayerColor(playerid,0xFFFFFFFF);
}
return 1;
}