Teams help
#6

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Maybe on spawn, set their team?
pawn Код:
public OnPlayerSpawn(playerid)
{
 SetPlayerTeam(playerid, 1); // sets the players team to 1 when they spawn.
 return 1;
}

I think
that will automatically make them have God Mode for their team-mates
in-case they Shoot at their team-mates.
I used that, and did this:
pawn Код:
if(gTeam[playerid] == TEAM_COP) {
    SetPlayerPos( playerid, 1573.7228,-1694.9384,6.2188);
    SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
    SendClientMessage(playerid,0x1E90FFAA, "POLICE OFFICER: Your job is to keep criminals off the streets of San Andreas");
    SendClientMessage(playerid,0x1E90FFAA, "Remember: This is not a deathmatch server. Please abide by the /rules and enjoy");
    hastazer[playerid] =1;
    HasLawEnforcementRadio[playerid] =1;
    LawEnforcementRadio[playerid] =1;
    TextDrawShowForPlayer(playerid,txtTypeSkill1);
    CanChooseSkill[playerid] = 0;
    SetPlayerTeam(playerid, TEAM_COP);
  }

Cops are now not able to attack each other which is great, but now, When i'm a cop and i try to kill another team, it doesn't work....and no one is able to hurt me.


I just want it to cops can't hurt each other
Reply


Messages In This Thread
Teams help - by MWF2 - 16.06.2010, 19:16
Re: Teams help - by MWF2 - 17.06.2010, 01:42
Re: Teams help - by (SF)Noobanatior - 17.06.2010, 05:01
Re: Teams help - by MWF2 - 17.06.2010, 12:21
Re: Teams help - by ViruZZzZ_ChiLLL - 17.06.2010, 14:08
Re: Teams help - by MWF2 - 17.06.2010, 21:18
Re: Teams help - by ruckfules99 - 18.06.2010, 00:27
Re: Teams help - by MWF2 - 18.06.2010, 03:40
Re: Teams help - by (SF)Noobanatior - 18.06.2010, 05:53
Re: Teams help - by ruckfules99 - 18.06.2010, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)