11.04.2012, 18:34
Hello,i've this 2 dialogs on OnPlayerConnect:
I wanna add this another dialog:
After the register or login (depends on player account)
How i can do?
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
}
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");
How i can do?