24.10.2014, 07:08
pawn Код:
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), Players, Nome);
if(!DOF2::FileExists(String))
{
format(String, sizeof(String), "\n{7FFFD4}Nick: {1E90FF}%s Nгo Registrado\n\n{FFFFFF} Digite Uma Senha Para Registrar Sua Conta\n", Nome);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Sistema de Registro", String, "Registrar", "Cancelar");
}
else
{
format(String, sizeof(String), "\n{7FFFD4}Nick: {1E90FF}%s Registrado\n\n{FFFFFF} Digite sua Senha Corretamente para Logar\n", Nome);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Sistema de Login", String, "Logar", "Cancelar");
}
PInfo[playerid][GAdmin] = 0;
PInfo[playerid][SpecOn] = 0;
format(gstring, sizeof(gstring), Players, Nome(playerid));
PInfo[playerid][GAdmin] = dini_Int(gstring, "AdminL");
return 1;
}