Not getting kicked when cancelling dialog
#9

Sure.

pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Welcome back to New Jersey Roleplay, please type in your password to log in.\nYou have 60 seconds to log in before you kicked.","Login","Quit");
Here's the whole thing:

pawn Код:
forward login_dialog(playerid);
public login_dialog(playerid)
{
    SetTimerEx("LoginTimer", 60000, false, "i", playerid);
    TextDrawShowForPlayer(playerid,Textdraw0);
    TextDrawShowForPlayer(playerid,Textdraw1);
    SetPlayerCameraPos(playerid, -2193.8313,-2481.8018,56.6954);
    SetPlayerCameraLookAt(playerid, -2148.7173,-2415.4434,55.6071);
    for( new i = 0; i <= 100; i ++ ) SCM(playerid, -1, "" );
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Welcome back to New Jersey Roleplay, please type in your password to log in.\nYou have 60 seconds to log in before you kicked.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Register","Welcome to New Jersey Roleplay.\nTo register an account please type in your desired password below.","Register","Quit");
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)