Question regarding class selection
#5

Quote:
Originally Posted by Mikep.
pawn Код:
new pCheck[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
  pCheck[playerid] = 0;
  return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
  if(Registered(playerid) && !pCheck[playerid]) SpawnPlayer(playerid);
  pCheck = 1;
  return 1;
}
That's how I would do it.
But then what would happen to new players, players that aren't registered?
Reply


Messages In This Thread
Question regarding class selection - by ded - 19.09.2009, 14:39
Re: Question regarding class selection - by [03]Garsino - 19.09.2009, 14:51
Re: Question regarding class selection - by ded - 19.09.2009, 15:11
Re: Question regarding class selection - by Mikep. - 19.09.2009, 15:37
Re: Question regarding class selection - by ded - 19.09.2009, 15:42
Re: Question regarding class selection - by ded - 21.09.2009, 14:40

Forum Jump:


Users browsing this thread: 3 Guest(s)