SA-MP Forums Archive
how to make dialog for all? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to make dialog for all? (/showthread.php?tid=146695)



how to make dialog for all? - iJumbo - 08.05.2010

how i can make a dialog show for all at same time ?? like ShowDialogForAll and not ShowPlayerDialog


Re: how to make dialog for all? - [NYRP]Mike. - 08.05.2010

pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(bla bla == 1)
    {
        ShowPlayerDialog...
    }
}



Re: how to make dialog for all? - iJumbo - 08.05.2010

ty


Re: how to make dialog for all? - RyDeR` - 08.05.2010

Here in function if you want ►
pawn Код:
ShowDialogForAll(dialogid, dialogstyle, caption[], info[], button1[], button2[])
{
    new
      x
    ;
    do
    {
        if(IsPlayerConnected(x) && !IsPlayerNPC(x))
        {
            ShowPlayerDialog(x, dialogid, dialogstyle, caption, info, button1, button2);
        }
    }
    while((x != MAX_PLAYERS));
    return 1;
}