08.06.2010, 23:34
el codigo te quedo asi:
y ademas definiste que cuando el jugador se loguea logueado[playerid] sea 1 y que cuando se conecta si existe el arvhico(si usas dini dudb o sistema por archivos) o existe la querry x asi decirle (si usas una db) que registrado[playerid] sea 1?
pawn Код:
new registrado[MAX_PLAYERS];
new logueado[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
if(registrado[playerid] == 0){
SendClientMessage(playerid, color, "Debes registrarte para poder jugar");
return 0;
}
if(registrado[playerid] == 1 && logueado[playerid] == 0){
SendClientMessage(Playerid, color, "La cuenta esta registrada. logueate para poder jugar");
return 0;
}
return 1;
}