logged in
#7

That's all:

Код:
public OnPlayerSpawn(playerid)
{
  if(gTeam[playerid] == TEAM_SWAT)
  {
    SetPlayerColor(playerid, COLOR_GREEN);
  }
  if(gTeam[playerid] == TEAM_CHICKENS)
  {
    SetPlayerColor(playerid, COLOR_YELLOW);
  }
  if(gTeam[playerid] == TEAM_KAMIKAZERS)
  {
    SetPlayerColor(playerid, COLOR_RED);
  }
  if(gTeam[playerid] == TEAM_IMMIGRANTS)
  {
    SetPlayerColor(playerid, COLOR_CORAL);
  }
  if(gTeam[playerid] == TEAM_MEDICS)
  {
    SetPlayerColor(playerid, COLOR_ORANGE);
  }
  if(gTeam[playerid] == TEAM_FARMERS)
  {
    SetPlayerColor(playerid, COLOR_PINK);
  }
  if(gTeam[playerid] == TEAM_RICHS)
  {
    SetPlayerColor(playerid, COLOR_LIGHTBLUE);
  }
  if(gTeam[playerid] == TEAM_PILOTS)
  {
    SetPlayerColor(playerid, COLOR_GREY);
  }
if(IsLogged[playerid] == 0)
 {
 SendClientMessage(playerid, 0x33AA33AA, "[BotServ] You can't spawn if you arent logged in/registered.");
 SendClientMessage(playerid, 0xFF9900AA, "[BotServ] Use /login if you are registered and try to spawn again.");
 SendClientMessage(playerid, 0xFFFF00AA, "[BotServ] Or use /register to create a new account and try to   spawn again.");
return 0;
}
 return 1;
}
Reply


Messages In This Thread
logged in - by Face9000 - 14.12.2010, 22:35
Re: logged in - by Steven82 - 14.12.2010, 22:39
Re: logged in - by Face9000 - 14.12.2010, 22:42
Re: logged in - by Steven82 - 14.12.2010, 22:44
Re: logged in - by Face9000 - 14.12.2010, 22:45
Re: logged in - by Steven82 - 14.12.2010, 22:46
Re: logged in - by Face9000 - 14.12.2010, 22:47
Re: logged in - by Steven82 - 14.12.2010, 22:48
Re: logged in - by blackwave - 14.12.2010, 22:48
Re: logged in - by Steven82 - 14.12.2010, 22:51

Forum Jump:


Users browsing this thread: 4 Guest(s)