[HELP] Connection buttons
#4

Quote:
Originally Posted by Pooh7
Посмотреть сообщение
No...
Textdraw is actually intro, and server check if player have registered account. If no, server will show couple textdraws. After that, on scene become server rules, registration, blabla.

One more reason why I can't do that on your way, it's because if is player spawned without registration(login), server will kick him.





Congratulations
You need to update that on your script like me,look:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if (gPlayerLogged[playerid] != 1)
    {
        new name[MAX_PLAYER_NAME], file[256];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), SERVER_USER_FILE, name);
        if (!dini_Exists(file))
        {
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hello and Welcome! International Airport.", "You need a passport,please register", "Register", "Leave");
        }
        if(fexist(file))
        {
            ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Hello! This is International Airport.", "Please tell me some information about you((Password))", "Login", "Leave");
        }
        SetPlayerCameraPos(playerid, 1014.5112,-1483.1392,89.9052);
        SetPlayerCameraLookAt(playerid, 1372.2992,-1976.3547,73.5682);
    }
    else
    {
        SpawnPlayer(playerid);
    }
    return 1;
}
I made the login/registration before Requesting class
Reply


Messages In This Thread
[HELP] Connection buttons - by Pooh7 - 06.12.2010, 19:35
Re: [HELP] Connection buttons - by SkizzoTrick - 06.12.2010, 19:47
Re: [HELP] Connection buttons - by Pooh7 - 06.12.2010, 19:54
Re: [HELP] Connection buttons - by SkizzoTrick - 06.12.2010, 20:03
Re: [HELP] Connection buttons - by Alex_Valde - 06.12.2010, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)