Hey,
wenn ich in einem Listendialog das Listitem 1 auswähle passiert folgendes:
TogglePlayerControllable(playerid,1);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid,COLOR_YELLOW,"Du hast den ersten Koffer ausgewählt!");
GivePlayerMoney(playerid,7500);
SetPlayerSkin(playerid,66);
SetPlayerScore(playerid, 1);
ShowPlayerDialog(playerid,DIALOG_KOFFFER1,DIALOG_STYLE_MSGBOX,"Koffer 1","Im Koffer 1 waren:\n7.500$\nSkin NR. 66","In Ordnung","In Ordnung"" ");
Register(playerid, MD5_Hash(inputtext));
Neu[playerid] = 0;
SpawnPlayer(playerid);
return 1;
Wenn ich jedoch dann gespawnt werde, habe ich immer noch den Anfangsskin (Skin 0)
Mein Spawn Callback:
public OnPlayerSpawn(playerid)
{
if(Neu[playerid] == 0)
{
if(Spieler[playerid][Fraktion] == 0)
{
SetPlayerPos(playerid,1685.6868,-2202.1194,13.5469);
new Playerdatei[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Playerdatei,sizeof(Playerdatei),"/Accounts/%s.ini",name);
SetPlayerSkin(playerid, dini_Int(Playerdatei, "Skin"));
TogglePlayerSpectating(playerid,0);
StopAudioStreamForPlayer(playerid);
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Fraktions Neger");
SetPlayerPos(playerid,1685.6868,-2202.1194,13.5469);
new Playerdatei[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Playerdatei,sizeof(Playerdatei),"/Accounts/%s.ini",name);
SetPlayerSkin(playerid, dini_Int(Playerdatei, "Skin"));
TogglePlayerSpectating(playerid,0);
StopAudioStreamForPlayer(playerid);
}
}
if(Neu[playerid] == 1)
{
ShowPlayerDialog(playerid,DIALOG_PLANE,DIALOG_STYLE_MSGBOX,"Flug 717","Willkommen im Flug 717 nach Los Santos.\nWir werden in ca 1 Minute am LS Airport landen.\nMachen Sie es noch so lange bequem... ","In Ordnung","");
TogglePlayerSpectating(playerid,0);
SetPlayerPos(playerid,1.808619,32.384357,1199.593750);
SetPlayerInterior(playerid,1);
StopAudioStreamForPlayer(playerid);
}
// .......
Was mache ich falsch? :O