public OnPlayerConnect(playerid){ LoadPlayerVehicle(playerid); 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)) { ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Willkommen zurück! Melde dich mit deinem Passwort an:","Weiter","Abbrechen"); } else { ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","Gebe bitte ein gewünschtes Passwort ein:","Weiter","Abbrechen"); } if(IsPlayerNPC(playerid)) { new botname[MAX_PLAYER_NAME]; GetPlayerName(playerid, botname, sizeof(botname)); if(!strcmp(botname, "BulletLS", true)) { Player[playerid][eingeloggt] = 1;//Der Bot ist gleich eingeloggt (Anpassen!) } } TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw2);
SetTimerEx("PayDay",60000,1,"i",playerid); SetTimerEx("setOfficerEquipment", false, 7*1000, "dd", playerid, 1); SetTimerEx("setOfficerEquipment", false, 10*1000, "dd", playerid, 0); SetPlayerCameraPos(playerid,1418.9424,-1629.9061,54.6056); SetPlayerCameraLookAt(playerid,1480.6212,-1748.4795,15.4453); PlayerPlaySound(playerid, 1062, 1418.9424,-1629.9061,54.6056);