[HELP] Connection buttons
#1

hi

how to remove <<< | >>> | Spawn button on player connection?
I have textdraw on place where is this button, so i want to remove it.

Is it possible?
Reply
#2

Put this

pawn Код:
public OnPlayerConnect(...)
{
SpawnPlayer(playerid);
return 1;
}
MY 300th POST!!!!!!
Reply
#3

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.


Quote:
Originally Posted by SkizzoTrick
Посмотреть сообщение
MY 300th POST!!!!!!
Congratulations
Reply
#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
#5

When the player connects:

pawn Код:
TogglePlayerSpectating(playerid, true);
When Player spawns:

pawn Код:
TogglePlayerSpectating(playerid, false);
But keep in mind this will by pass the whole "class selection" screen so you will need to assign the skin to the player before he spawns.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)