Moin moin, ich möchte sone Funktion ins script haun, das allen admins anzeigt das wenn der spieler Deutsch/Österreicher/Schweizer/Türke/Pole ist...
hier die stellen meines scriptest
PlayerInfo[playerid][pAge] = check;
RegistrationStep[playerid] = 3;
ShowPlayerDialog(playerid,DIALOG_REGSTEP_3,DIALOG_STYLE_LIST,"{00ff00}[{ff0000}Mission-Craftin{00ff00}]{ffffff}- {00ff00}Eigene Daten","{ffffff}Deutschland\nÖsterreich\nSchweiz\nTürkei\nPolen","Bestätigen"," ");
if(response == 0){
ShowPlayerDialog(playerid,DIALOG_REGSTEP_2,DIALOG_STYLE_INPUT,"{00ff00}[{ff0000}Mission-Craftin{00ff00}]{ffffff}- {00ff00}Eigene Daten","{ff0000}EINGABEFEHLER: {ffffff}Gib das Datum an, an dem du Geboren wurdest.\nIn dieser Form: {ff0000}Tag{ff0000}{ffffff}.{ff0000}Monat{ff0000}{ffffff}.{ff0000}Jahr{ff0000}{ffffff}\n{00ff00}=> {ffffff}Die Angabe soll in Zahlen erfolgen:","Bestätigen"," ");
}
}
if(dialogid == DIALOG_REGSTEP_3)
{
if(response == 1)
{
switch (listitem)
{
case 0://Deutschland
{
PlayerInfo[playerid][pOrigin] = 1;
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_DBLUE, " ");
ShowPlayerDialog(playerid,DIALOG_TUTORIALAUSWAHL,DIALOG_STYLE_MSGBOX,"Tutorial Auswahl Menü","Möchtest du das Tutorial Gucken?","Ja","Nein");
RegistrationStep[playerid] = 0;
// TutTime[playerid] = 1;
}
case 1://österreich
{
PlayerInfo[playerid][pOrigin] = 1;
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_DBLUE, " ");
ShowPlayerDialog(playerid,DIALOG_TUTORIALAUSWAHL,DIALOG_STYLE_MSGBOX,"Tutorial Auswahl Menü","Möchtest du das Tutorial Gucken?","Ja","Nein");
RegistrationStep[playerid] = 0;
}
case 2://Schweiz
{
PlayerInfo[playerid][pOrigin] = 1;
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_DBLUE, " ");
ShowPlayerDialog(playerid,DIALOG_TUTORIALAUSWAHL,DIALOG_STYLE_MSGBOX,"Tutorial Auswahl Menü","Möchtest du das Tutorial Gucken?","Ja","Nein");
RegistrationStep[playerid] = 0;
}
case 3://Türkei
{
PlayerInfo[playerid][pOrigin] = 1;
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_DBLUE, " ");
ShowPlayerDialog(playerid,DIALOG_TUTORIALAUSWAHL,DIALOG_STYLE_MSGBOX,"Tutorial Auswahl Menü","Möchtest du das Tutorial Gucken?","Ja","Nein");
RegistrationStep[playerid] = 0;
}
case 4://Polen
{
PlayerInfo[playerid][pOrigin] = 1;
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_DBLUE, " ");
ShowPlayerDialog(playerid,DIALOG_TUTORIALAUSWAHL,DIALOG_STYLE_MSGBOX,"Tutorial Auswahl Menü","Möchtest du das Tutorial Gucken?","Ja","Nein");
RegistrationStep[playerid] = 0;
}
}
}