21.04.2012, 11:58
Sorry can I sort this out aswell?
if pRegged is set to 1 then it doesn't show the dialog for the player when they connect again! here is my OnPlayerConnect!
if pRegged is set to 1 then it doesn't show the dialog for the player when they connect again! here is my OnPlayerConnect!
Код:
public OnPlayerConnect(playerid) { if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Register","Type your password below to register a new account.","Register","Quit"); SpawnPlayer(playerid); } SetPlayerColor(playerid, COLOR_WHITE); return 1; }