30.07.2013, 15:57
Well, I'm experiencing a pretty confusing error that I shouldn't be experiencing in the first place. I have a login system set up for my server, and after the player types the correct password it brings them to the "Arrow left, arrow right and spawn" screen. After clicking SPAWN you get a bunch of messed up colours and "Stay within the worlds boundaries". However, I do not even want that screen and I just want the player to spawn with a selected skin. If anyone can tell me how to do that please help me out.
Код:
public OnPlayerConnect(playerid) { 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.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit"); } new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME+1]; if (fexist(UserPath(playerid))) GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "Admin: %s has joined the server.", name); strreplace(name, '_', ' '); SendClientMessage(playerid, -1, "Welcome!"); SendMessageToAdmins(string); return 1; }