[Help] Team help
#2

Make sure that this is in your code somewhere .

pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
  if(classid == 0)
  {
             gTeam[playerid] = TEAM_WORKERS;
        SetPlayerTeam(playerid,TEAM_WORKERS);//You can delete this line if you want to allow team killing...
        GameTextForPlayer(playerid,"~g~Workers",10,0);
  }
  else if(classid == 1)
  {
             gTeam[playerid] = TEAM_AGENTS;
        SetPlayerTeam(playerid,TEAM_AGENTS);//Same for this!
        GameTextForPlayer(playerid,"~r~Agents",10,0);
  }
}
Reply


Messages In This Thread
[Help] Team help - by Twinki1993 - 26.06.2011, 19:48
Re: [Help] Team help - by [HiC]TheKiller - 26.06.2011, 20:10
Re: [Help] Team help - by Twinki1993 - 26.06.2011, 20:17
Re: [Help] Team help - by [HiC]TheKiller - 26.06.2011, 20:19
Re: [Help] Team help - by Twinki1993 - 26.06.2011, 20:20
Re: [Help] Team help - by Twinki1993 - 26.06.2011, 20:23
Re: [Help] Team help - by [HiC]TheKiller - 26.06.2011, 20:26
Re: [Help] Team help - by Twinki1993 - 26.06.2011, 20:27
Re: [Help] Team help - by Twinki1993 - 26.06.2011, 20:34
Re: [Help] Team help - by [HiC]TheKiller - 27.06.2011, 05:45

Forum Jump:


Users browsing this thread: 1 Guest(s)