Showing the next dialog after the first
#1

Hello,i've this 2 dialogs on OnPlayerConnect:

pawn Код:
if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login and load your account data.","Login","Quit"); // Login Dialog
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit"); // Register Dialog
    }
I wanna add this another dialog:

pawn Код:
ShowPlayerDialog(playerid,24,DIALOG_STYLE_MSGBOX,"{3399FF}*****SFGW Cops&Robbers Rules*****","Warning: Please remember that there rules ARE FOR COPS AND CIVILIANS,both need to respect.\nDon't do random hit,this is not a dm server.\nRespect players and admins.\nUse /report if you saw a cheater and don't shout it in main chat.\nIf you are a civilian,don't random kill cops,you can get arrested or killed.\nClick Accept to accept this rules or Decline to refuse it.","Accept","Decline");
After the register or login (depends on player account)

How i can do?
Reply
#2

Put into OnPlayerDialogResponse ...

pawn Код:
if(dialogid == DIALOG_REGISTER)
{
    if(response)
    {
        ShowPlayerDialog(playerid,24,DIALOG_STYLE_MSGBOX,"{3399FF}*****SFGW Cops&Robbers Rules*****","Warning: Please remember that there rules ARE FOR COPS AND CIVILIANS,both need to respect.\nDon't do random hit,this is not a dm server.\nRespect players and admins.\nUse /report if you saw a cheater and don't shout it in main chat.\nIf you are a civilian,don't random kill cops,you can get arrested or killed.\nClick Accept to accept this rules or Decline to refuse it.","Accept","Decline");
        //Register code
    }
}

if(dialogid == DIALOG_LOGIN)
{
    if(response)
    {
        ShowPlayerDialog(playerid,24,DIALOG_STYLE_MSGBOX,"{3399FF}*****SFGW Cops&Robbers Rules*****","Warning: Please remember that there rules ARE FOR COPS AND CIVILIANS,both need to respect.\nDon't do random hit,this is not a dm server.\nRespect players and admins.\nUse /report if you saw a cheater and don't shout it in main chat.\nIf you are a civilian,don't random kill cops,you can get arrested or killed.\nClick Accept to accept this rules or Decline to refuse it.","Accept","Decline");
        //Login code
    }
}
Reply
#3

This
Код:
ShowPlayerDialog(playerid,24,DIALOG_STYLE_MSGBOX,"{3399FF}*****SFGW Cops&Robbers Rules*****","Warning: Please remember that there rules ARE FOR COPS AND CIVILIANS,both need to respect.\nDon't do random hit,this is not a dm server.\nRespect players and admins.\nUse /report if you saw a cheater and don't shout it in main chat.\nIf you are a civilian,don't random kill cops,you can get arrested or killed.\nClick Accept to accept this rules or Decline to refuse it.","Accept","Decline");
Put it in OnPlayerLogin...

if(dialogid == 24)
{
if(response)
{
SendClientMessage(playerid, COLOR, " by Byyy );
}
}
}
Reply
#4

Guys maybe you don't understand what im trying to say.I've that on OnDialogResponse but the problem is another.

If a player isnt register he will get the normal registration dialog,after he register i want he get the rules dialog.

And same for login.
Reply
#5

In The registering Dialog(When the player succesful register) type the Dialog after...
Reply
#6

Look my last post

Isn't it?
Reply
#7

Nothing,doesnt work,after i complete both dialogs (register and login),i get redirect automatically to the class selection.

I need to show FIRST the rules dialog,and AFTER the register or login dialog.
Reply
#8

So, put the rules in OnPlayerConnect ...
Reply
#9

.....is what i've done and doesnt work
Reply
#10

You can show me OnPlayerConnect?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)