< > & Spawn button
#6

Or, you're checking it with a boolean:

pawn Код:
bool:loggedIn[MAX_PLAYERS];
Under "OnPlayerLogin" add this:

pawn Код:
loggedIn[playerid] == true;
Then, you could - as Dwane already said - check whether the player's logged in or not:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  if(loggedIn[playerid] == false)
  {
    SendClientMessage(playerid, -1, "You'll have to login before changing / choosing classes!");
    return 0;
  }
   //rest
Reply


Messages In This Thread
< > & Spawn button - by Dripac - 05.03.2012, 11:45
Re: < > & Spawn button - by iTorran - 05.03.2012, 11:48
AW: < > & Spawn button - by Dripac - 05.03.2012, 15:25
Re: AW: < > & Spawn button - by vassilis - 05.03.2012, 16:28
Re: AW: < > & Spawn button - by Konstantinos - 05.03.2012, 16:33
Re: < > & Spawn button - by Twisted_Insane - 05.03.2012, 16:36
Re: < > & Spawn button - by Dripac - 05.03.2012, 16:38

Forum Jump:


Users browsing this thread: 3 Guest(s)