07.07.2013, 00:12
(
Последний раз редактировалось mapcode; 07.07.2013 в 09:03.
)
remove
if(dialogid == 1) //LOGIN { if(gPlayerLogged[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in."); return 1; } if(response) { if(!strlen(inputtext)) { DisplayDialogForPlayer(playerid, 1); //login SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password."); return 1; } if(strlen(inputtext) >= 50) { DisplayDialogForPlayer(playerid, 1); //login SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password is too long."); return 0; } new tmppass[64]; //Store Player ID & TMP pass in echo to find string used to crash server new playername[MAX_PLAYER_NAME]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); GetPlayerName(playerid, playername, sizeof(playername)); TextDrawShowForPlayer(playerid, SpawnClickI); TextDrawShowForPlayer(playerid, SpawnClickII); // printf("[login] [%s] %s", playername, inputtext[0]); if(strlen(playername) == 3) { /*if(strcmp(playername, "Smo", true) == 0) { return 0; } else {*/ SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, that name is too short, please change it."); Kick(playerid); return 1; //} } Encrypt(tmppass); OnPlayerLogin(playerid,tmppass); } else { DisplayDialogForPlayer(playerid, 1); //login
DisplayDialogForPlayer(playerid, 1); //login