Hey Com.
Ich bin verzweifelt, denn ich komm nicht weiter.
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid, 10 , DIALOG_STYLE_LIST, "*** Wähle deine Klasse aus ***", "{FFFFFF}Soldat (Deagle, MP5, M4)\n{FFFFFF}Rebelle (Deagle, TEC-9, AK-47)\n{FFFFFF}Assasin (Messer, SD-Pistol, Sniper)\n{FFFFFF}Gangster (Deagle, Shotgun, Gewehr)\n{FFFFFF}Bomber (9MM Pistols, AK-47, Granate)", "Fertig", "Abbrechen");
return 1;
}
Und dann noch unter:
if(response) {
switch(dialogid == 10)
{
case 1: {
switch(listitem)
{
case 0: {
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 500);
if(PlayerSpawn[playerid] == 1)
return 1;
}
case 1: {
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 500);
return 1;
}
case 2: {
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 500);
return 1;
}
case 3: {
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 500);
return 1;
}
case 4: {
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 500);
return 1;
}
}
}
}
}
So meine frage ist nun, wie bekomm ich es so hin, dass er nicht bei jedem spawn, sondern nur beim ersten den Dialog zeigt.
Danke im Vorraus