case DIALOG_LOGIN:
{
if(response)
{
if(strlen(MD5_Hash(inputtext)) == 0)
{
new string[256];
format(string,sizeof(string),"{FEFEFE}Willkommen zurück auf {009BFF}New-Evolution-Reallife{FEFEFE}! Bitte logge dich unten ein,\num weiterzuspielen. Oder drück auf Abbrechen, um den Vorgang abzubrechen.\n{009BFF}Bitte gib hier dein Passwort ein:");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",string,"Login","Abbrechen");
return 1;
}
else
{
if(!strcmp(MD5_Hash(inputtext), mysql_ReturnPasswort(GetName(playerid)), true))
{
SetPVarInt(playerid,"Eingeloggt",1);
StopAudioStreamForPlayer(playerid);
mysql_reconnect(); ////////////////////
LoadPlayer(playerid);
if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0)
{
SetSpawnInfo(playerid,0,PlayerInfo[playerid][pSkin],ZiviSpawn,0,0,0,0,0,0);
SpawnPlayer(playerid);
SetCameraBehindPlayer(playerid);
return 1;
}
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SetSpawnInfo(playerid,0,PlayerInfo[playerid][pSkin],219.6279,69.0449,1005.0391,290.2822,0,0,0,0,0,0);
SpawnPlayer(playerid);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
}
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetSpawnInfo(playerid,0,PlayerInfo[playerid][pSkin],-309.1810,1538.0344,75.5625,160.9133,0,0,0,0,0,0);
SpawnPlayer(playerid);
SetCameraBehindPlayer(playerid);
}
return 1;
}
else
{
new string[256];
format(string,sizeof(string),"{FEFEFE}Willkommen zurück auf {009BFF}New-Evolution-Reallife{FEFEFE}! Bitte logge dich unten ein,\num weiterzuspielen. Oder drück auf Abbrechen, um den Vorgang abzubrechen.\n{009BFF}Bitte gib hier dein Passwort ein:");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",string,"Login","Abbrechen");
return 1;
}
}
}
else
{
Kick(playerid);
}
}