Dialogs are mixed up they even shows in PlayerLogin
#7

Just the best way to learn how to do things. Only for me. Because if I see code I can easy try to manipulate with it.
pawn Код:
public SafeLogin(playerid)
{

    // Main Menu Features.
    ShowMainMenuGUI(playerid);
    SetPlayerJoinCamera(playerid);
    ClearChatbox(playerid);
    SetPlayerVirtualWorld(playerid, 0);

    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    if(doesAccountExist(playername))
    {
        gPlayerAccount[playerid] = 1;
        ShowMainMenuDialog(playerid, 1);
        return 1;
    }
    else
    {
        if( strfind( playername, "_", true) == -1 )
        {
            SendClientMessageEx( playerid, COLOR_WHITE, "Connection rejected. Please get a name in the correct format: Firstname_Lastname." );
        }
        else
        {
            gPlayerAccount[playerid] = 0;
            ShowMainMenuDialog(playerid, 2);
        }

        return 1;
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)