Hey habe wie schon gesagt das problem das spawn nicht funkioniert
der Code AddPlayerClass(0, 479.3358,-1499.7964,20.4907,274.4454,0,0,0,0,0,0);
public OnPlayerConnect(playerid)
{
TogglePlayerSpectating(playerid,1);
if(GetPVarInt(playerid,"Eingeloggt") == 0)
{
if(mysql_CheckAccount(playerid) == 0)
{
for (new a=1;a<=10;a++){SendClientMessage(playerid,COLOR_LOGIN," ");}
SendClientMessage(playerid,COLOR_LOGIN,"-_-_-_-_-_Wilkommen_-_-_-_-_-");
SendClientMessage(playerid,COLOR_LOGIN,"Der Server konnte deinen Account nicht finden");
SendClientMessage(playerid,COLOR_LOGIN,"Bitte Registriere dich auf HSG-RL");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{00FFF0}Registrieren","{FFFF00}Herzlich Willkommen auf {FF0000}HSG-RL\n{00FFF0}Bitte Registriere Dich","Registrieren","Abbruch");
}
else if(mysql_CheckAccount(playerid) == 1)
{
for (new a=1;a<=10;a++){SendClientMessage(playerid,COLOR_LOGIN," ");}
new string[128];
new PNAME[40];
GetPlayerName(playerid, PNAME, sizeof(PNAME));
format(string,sizeof(string),"Wilkommen zurück %s",PNAME);
SendClientMessage(playerid,COLOR_LOGIN,"-_-_-_-_-_Wilkommen Zurück_-_-_-_-_-");
SendClientMessage(playerid,COLOR_LOGIN,string);
SendClientMessage(playerid,COLOR_LOGIN,"Logge dich mit deinem Passwort ein");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{00FFF0}Login","{FFFF00}Herzlich Wilkommen zurück bei {FF0000}HSG-RL\n{FFFF00}Bitte logge dich ein","Login","Abbruch");
}
}
else if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
GameTextForPlayer(playerid, "~r~Kick du bis schon verbunden", 300000, 6);
TogglePlayerControllable(playerid,0);
Kick(playerid);
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_REGISTER:
{
if(response)
{
if(strlen(inputtext) <= 4)
{
for (new a=1;a<=10;a++){SendClientMessage(playerid,COLOR_LOGIN," ");}
SendClientMessage(playerid,COLOR_RED,"Du hast ein zu kurzes Passwort Angegeben");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"{00FFF0}Registrieren","{FFFF00}Herzlich Willkommen auf {FF0000}HSG-RL\n{00FFF0}Bitte Registriere Dich","Registrieren","Abbruch");
return 1;
}
else
{
CreateAccount(playerid, MD5_Hash(MD5_Hash(MD5_Hash(inputtext))));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{00FFF0}Login","{FFFF00}Herzlich Wilkommen zurück bei {FF0000}HSG-RL\n{FFFF00}Bitte logge dich ein","Login","Abbruch");
return 1;
}
}
else
{
GameTextForPlayer(playerid, "~r~Kick", 300000, 6);
TogglePlayerControllable(playerid,0);
Kick(playerid);
}
}
case DIALOG_LOGIN:
{
if(response)
{
if(strlen(inputtext) <= 4)
{
for (new a=1;a<=10;a++){SendClientMessage(playerid,COLOR_LOGIN," ");}
SendClientMessage(playerid,COLOR_RED,"Du hast ein zu kurzes Passwort Angegeben");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{00FFF0}Login","{FFFF00}Herzlich Wilkommen zurück bei {FF0000}HSG-RL\n{FFFF00}Bitte logge dich ein","Login","Abbruch");
return 1;
}
else
{
new SpielerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, SpielerName, MAX_PLAYER_NAME);
if(!strcmp(MD5_Hash(MD5_Hash(MD5_Hash(inputtext))), mysql_ReturnPasswort(SpielerName), true))
SetPVarInt(playerid,"Eingeloggt",1);
LoadPlayer(playerid);
TogglePlayerSpectating(playerid,0);
SpawnPlayer(playerid);
return 1;
}
else
{
for (new a=1;a<=10;a++){SendClientMessage(playerid,COLOR_LOGIN," ");}
SendClientMessage(playerid,COLOR_RED,"Das Passwort war Falsch");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{00FFF0}Login","{FFFF00}Herzlich Wilkommen zurück bei {FF0000}HSG-RL\n{FFFF00}Bitte logge dich ein","Login","Abbruch");
return 1;
}
}
}
else
{
GameTextForPlayer(playerid, "~r~Kick", 300000, 6);
TogglePlayerControllable(playerid,0);
Kick(playerid);
}
}
}
return 1;
}