13/02/2022 16:58
Pronto, agora se o jogador apertar ESC ou cancelar o login/registro, ele será retirado do servidor.
Código PHP:
if(dialogid == REGISTRO)
{
if(response)
{
if(!strlen(inputtext))
{
new IP[128];
GetPlayerIp(playerid, IP, sizeof(IP));
format(String, sizeof(String), "{FFFFFF}Bem vindo! \n\nNick: %s\n\n{FFFFFF}IP: {90EE90}%s\n\nRegistre-se:", Nome(playerid),IP);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "{6495ED}# {FFFFFF}Registro", String, "Registrar", "Sair");
return 1;
}
else {
p_PlayerLogin(playerid, inputtext);
}
}
else
{
format(String, sizeof(String), "{E84F33}CONTA: {FF0000}Player %s Kickado Motivo:[Cancelou o Login]", Nome(playerid));
MsgToAll(cortag, String);
zPKick(playerid);
}
}
if (dialogid == LOGIN)
{
if(response)
{
if(!strlen(inputtext))
{
new IP[128];
GetPlayerIp(playerid, IP, sizeof(IP));
format(String, sizeof(String), "{FFFFFF}Bem vindo novamente! \n\nNick: {90EE90}%s\n\n{FFFFFF}IP: {90EE90}%s\n\n{FFFFFF}Digite sua senha:", Nome(playerid), IP);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "{6495ED}# {FFFFFF}Login", String, "Entrar", "Sair");
return 1;
}
else {
p_PlayerLogin(playerid, inputtext);
}
}
else
{
format(String, sizeof(String), "{E84F33}CONTA: {FF0000}Player %s Kickado Motivo:[Cancelou o Login]", Nome(playerid));
MsgToAll(cortag, String);
zPKick(playerid);
}
}
k2bi#9906
[C.E.O]Brasil Play Socity
[C.E.O]Brasil Play Socity