Hey ich wollte mal meinen Login verschönern nur es wird nicht angezeigt...
ich habe alles in zwei stock gepackt, einmal register, einmal Login ...
aber es wird nicht ausgeführt....
Hier die Codes.. ich bin planlos wieso es nicht geht...
stock RegisterZeugs(playerid)
{
SetPlayerCameraPos(playerid,1898.5745,-1162.7070,23.7074);
SetPlayerCameraLookAt(playerid,1921.0239,-1178.3635,21.5284);
for(new msg; msg < 15; msg++) return SendClientMessage(playerid,COLOR_WHITE," ");
TextDrawShowForPlayer(playerid,LoginScreen0);
TextDrawShowForPlayer(playerid,LoginScreen1);
TextDrawShowForPlayer(playerid,LoginScreen2);
TextDrawShowForPlayer(playerid,LoginScreen3);
TextDrawShowForPlayer(playerid,LoginScreen4[playerid]);
TextDrawSetString(LoginScreen4[playerid],"bitte Registrieren sie sich...");
return 1;
}
stock LoginZeugs(playerid)
{
SetPlayerCameraPos(playerid,1898.5745,-1162.7070,23.7074);
SetPlayerCameraLookAt(playerid,1921.0239,-1178.3635,21.5284);
for(new msg; msg < 15; msg++) return SendClientMessage(playerid,COLOR_WHITE," ");
TextDrawShowForPlayer(playerid,LoginScreen0);
TextDrawShowForPlayer(playerid,LoginScreen1);
TextDrawShowForPlayer(playerid,LoginScreen2);
TextDrawShowForPlayer(playerid,LoginScreen3);
TextDrawShowForPlayer(playerid,LoginScreen4[playerid]);
TextDrawSetString(LoginScreen4[playerid],"bitte Loggen sie sich ein...");
return 1;
}
Function OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","{FFFFFF}Willkommen auf {00C3FF}Dark Leary Life{FFFFFF},\n Bitte Logge dich nun ein!\n","Login","Abbrechen");
LoginZeugs(playerid);
}
else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
{
ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account","{FFFFFF}Herzlich Willkommen auf {00C3FF}Dark Leary Life{FFFFFF},\nWir Freuen uns das du zu uns gejoint bist.\nDamit du gleich Loslegen kannst,\nmusst du dich Registrieren.\n{00C3FF}Viel Spaß{FFFFFF}.","Erstellen","Abbrechen");
RegisterZeugs(playerid);
}
PlayerPlaySound(playerid, 1176, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
}