01.03.2010, 00:55
pawn Code:
public OnPlayerConnect(playerid)
{
IsLogged[playerid] = 0;
IsRegistered[playerid] = 0;
new Nombre[MAX_PLAYERS];
new file[MAX_PLAYERS];
GetPlayerName(playerid, Nombre, sizeof(Nombre));
format(file, sizeof(file), "%s.ini", Nombre);
if(fexist(file)) { IsRegistered[playerid] = 1; }
if(IsRegistered[playerid] == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "**Cuenta sin registrar, por favor registrate: /Registrar <Contraseсa>.");
} else {
SendClientMessage(playerid, 0xFFFFFFFF, "*Cuenta registrada, por favor identificate: /Loguear <Contraseсa>.");
}
return 1;
}