[Ayuda] Como hacer que cuando entre el jugador....
#6

el codigo te quedo asi:
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;
}
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?
Reply


Messages In This Thread
[Ayuda] Como hacer que cuando entre el jugador.... - by Adoniiz - 08.06.2010, 20:18
Re: [Ayuda] Como hacer que cuando entre el jugador.... - by TheChaoz - 08.06.2010, 21:56
Re: [Ayuda] Como hacer que cuando entre el jugador.... - by Adoniiz - 08.06.2010, 22:58
Re: [Ayuda] Como hacer que cuando entre el jugador.... - by TheChaoz - 08.06.2010, 23:05
Re: [Ayuda] Como hacer que cuando entre el jugador.... - by Adoniiz - 08.06.2010, 23:28
Re: [Ayuda] Como hacer que cuando entre el jugador.... - by TheChaoz - 08.06.2010, 23:34

Forum Jump:


Users browsing this thread: 4 Guest(s)