how to make dialog for all?
#1

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

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

ty
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)