09.06.2013, 00:07
Yeh i know, because sometimes i'll get one or the other and it's really annoying.
Would this be right?
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;
}