Kleineres Skin-Auswahl-Problem.
Ich möchte es so machen: wenn der Spieler NEU ist, kann er in die Skin Auswahl.
Wenn er allerdings schon registriert ist soll er sich mit den Skin einloggen können. (Ohne eine Skin-Auswahl zu sehen)
Bei "SpielerLaden" und "SpielerSpeichern" hab ich es jeweils eingefügt sowie in Enum.
Bei OnPlayerSpawn und OnPlayerRequestClass ebenso.
Mein Problem: Ich weiß nicht wo ich das hintun soll. (Siehe in den folgenden Code)
//Skinauswahl
//JUNGS (19) die Zahlen in den Kommentaren hinter den Befehl sind die Skin IDs #merken
AddPlayerClass(0, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //0
AddPlayerClass(3, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //3
AddPlayerClass(15, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //15
AddPlayerClass(17, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //17
AddPlayerClass(18, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //18
AddPlayerClass(20, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //20
AddPlayerClass(21, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //21
AddPlayerClass(23, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //23
AddPlayerClass(25, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //25
AddPlayerClass(26, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //26
AddPlayerClass(29, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //29
AddPlayerClass(28, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //28
AddPlayerClass(33, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //33
AddPlayerClass(32, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //32
AddPlayerClass(37, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //37
AddPlayerClass(36, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //36
AddPlayerClass(38, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //38
AddPlayerClass(49, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //49
AddPlayerClass(51, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //51
//MÄDCHENS (19)
AddPlayerClass(9, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //9
AddPlayerClass(10, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //10
AddPlayerClass(12, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //12
AddPlayerClass(41, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //41
AddPlayerClass(40, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //40
AddPlayerClass(55, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //55
AddPlayerClass(54, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //54
AddPlayerClass(63, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //63
AddPlayerClass(65, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //65
AddPlayerClass(90, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //90
AddPlayerClass(131, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //131
AddPlayerClass(150, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //150
AddPlayerClass(157, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //157
AddPlayerClass(169, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //169
AddPlayerClass(178, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //178
AddPlayerClass(193, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //193
AddPlayerClass(226, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //226
AddPlayerClass(201, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //201
AddPlayerClass(216, 1766.2850,-1895.8571,13.5629,273.2245, 0,0,0,0,0,0); //216
OnPlayerSpawn:
SetPlayerSkin(playerid, GetPVarInt(playerid,"Skin"));
OnPlayerRequestClass:
new Spieler[64];
new Sname[MAX_PLAYER_NAME];
GetPlayerName(playerid,Sname,sizeof(Sname));
format(Spieler,sizeof(Spieler),"/Accounts/%s.txt",Sname);
SetSpawnInfo(playerid,0,SetPlayerSkin(playerid,dini_Int(Spieler,"Skin")),1766.2850,-1895.8571,13.5629,273.2245,0,0,0,0,0,0);
SpawnPlayer(playerid);
SetCameraBehindPlayer(playerid);