else if(dialogid==DIALOG_LOGIN && !PlayerInfo[pLoggedIn][playerid]){ if(!response){ ShowPlayerLoginDialog(playerid); return 0;} if(inputtext[0] && DOF_CheckLogin(DOF_File(PlayerName[playerid]),inputtext)){ printf(\"[Felhasználó] %s (%d) Üdv a szerveren, Admin!\",PlayerName[playerid],playerid); LoadPlayerStats(playerid); LoadHouseHold(playerid); DOF_SetString(DOF_File(PlayerName[playerid]),\"ip\",PlayerIp[playerid]); SendClientMessageEx(playerid,COLOR_ADMIN,\"<$> Felhasználó Infó <#> Üdv a szervern, Admin!\"); if(PlayerInfo[pAdminLevel][playerid]) { format(string,sizeof(string),\" AdminSzint: %d\",PlayerInfo[pAdminLevel][playerid]); SendClientMessageEx(playerid,COLOR_ADMIN,string); } } else { PlayerInfo[pLoginsFailed][playerid]++; printf(\"[belépés] %s (%d) sikertelen bejelentkezése! [%d/%d]\",PlayerName[playerid],playerid,PlayerInfo[pLoginsFailed][playerid],MAX_FAILED_LOGINS); if(GetPlayerLanguage(playerid)==LANG_HU) format(string,sizeof(string),\"<$> -Hiba-<#> Hibás Jelszó! (%d/\"#MAX_FAILED_LOGINS\")\",PlayerInfo[pLoginsFailed][playerid]); else format(string,sizeof(string),\"<$> -Warning-<#> Login failed! (%d/\"#MAX_FAILED_LOGINS\")\",PlayerInfo[pLoginsFailed][playerid]); SendClientMessageEx(playerid,COLOR_WARNING,string); if(PlayerInfo[pLoginsFailed][playerid]>=MAX_FAILED_LOGINS) { if(GetPlayerLanguage(playerid)==LANG_HU) ServerKickPlayer(playerid,\"Sikertelen bejelentkezés\"); else ServerKickPlayer(playerid,\"Login failed\"); } else ShowPlayerLoginDialog(playerid); return 0;}}
else if(dialogid==DIALOG_LOGIN && !PlayerInfo[pLoggedIn][playerid]){
if(dialogid==DIALOG_LOGIN && !PlayerInfo[pLoggedIn][playerid]){