How to delay a dialog?
#5

Yeh i know, because sometimes i'll get one or the other and it's really annoying.
pawn Код:
Forward showseconddialog();
Public showseconddialog()
{
ShowPlayerDialog(playerid, DIALOGCLAN, DIALOG_STYLE_INPUT, "{33AA33}Clan", stringa, "Confirm", "Exit");
}
return 1:}
public OnPlayerRequestSpawn(playerid)
{
    new stringa[500];
    new nome[24];
    SetTimer(showseconddialog, 5000, false);
    GetPlayerName(playerid, nome, 24);
    if(strfind(nome, TAGCLAN, true) == 0)
    {
        format(stringa, sizeof(stringa), "{FFFFFF}Welcome {FF4444}%s{FFFFFF}!\nYou must confirm the clan password {FF4444}%s{FFFFFF}.\n{FFFFFF}Enter the clan password and confirm.", nome);
        ShowPlayerDialog(playerid, DIALOGCLAN, DIALOG_STYLE_INPUT, "{33AA33}Clan", stringa, "Confirm", "Exit");
    }
    else
    {
        SendClientMessage(playerid, BLU_CHIARO, "Welcome!");
    }
    return 1;
}
Would this be right?
Reply


Messages In This Thread
How to delay a dialog? - by Tass007 - 08.06.2013, 23:22
Re: How to delay a dialog? - by Facerafter - 08.06.2013, 23:49
Re: How to delay a dialog? - by Tass007 - 08.06.2013, 23:56
Re: How to delay a dialog? - by Facerafter - 09.06.2013, 00:01
Re: How to delay a dialog? - by Tass007 - 09.06.2013, 00:07
Re: How to delay a dialog? - by Facerafter - 09.06.2013, 00:11
Re: How to delay a dialog? - by Tass007 - 09.06.2013, 00:15
Re: How to delay a dialog? - by Facerafter - 09.06.2013, 00:20
Re: How to delay a dialog? - by Tass007 - 09.06.2013, 00:32
Re: How to delay a dialog? - by Facerafter - 09.06.2013, 00:42

Forum Jump:


Users browsing this thread: 1 Guest(s)