joar wie die überschrift sagt:)
#define Logindialog 0
#define Registerdialog 1
public OnPlayerConnect{}//ja mache grade ausem kopf ?(
{
if (PlayerInfo[playerid][pReg] == 0)
{
ShowPlayerDialog(playerid, 0, 3, "Register"," Registrire dich"," Ok", "Nein")
}
if (PlayerInfo[playerid][pReg] == 1)
{
if (gPlayerLogged[playerid] = 0)
{
ShowPlayerDialog(playerid, 0, 3, "Login"," Logge dich ein", "Ok", "Nein")
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0)
{
if(response == 0)
{
SendClientMessage(playerid,deine_farbe,"Du wurdest gekickt");
Kick(playerid);
}
if(response == 1)
{
SendClientMessage(playerid,deine_farbe,"Du hast dich Registriert!");
OnPlayerRegister(playerid,tmppass);
}
}
if(dialogid == 1)
{
if(response == 0)
{
SendClientMessage(playerid,deine_farbe,"Du wurdest gekickt");
Kick(playerid);
}
if(response == 1)
{
SendClientMessage(playerid,deine_farbe,"Du hast dich eingeloggt!");
OnPlayerLogin(playerid,tmppass);
}
}
return 0;
}
ist das richtig ?
achso gff