Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
Well, what I need is pretty basic I think but I'm kinda stupid >.<
How to make anti-tdm? lets say i got
TEAM_SF and TEAM_BL
TEAM_SF cant attack others that are TEAM_SF, but they can attack TEAM_BL.
How to do that?
Posts: 307
Threads: 63
Joined: Aug 2010
Reputation:
0
SetPlayerTeam.
To TEAM_SF, OnPlayerSpawn add SetPlayerTeam(playerid,0); , in TEAM_BL add SetPlayerTeam(playerid,1); Using this, you cannot kill players in your team.
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
Yeah but wont that only set the team to player id 0? and 1?
Posts: 724
Threads: 62
Joined: Dec 2008
Reputation:
0
Set everyone in one team, to team 1, and the other, to team 2, do it when they spawn
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
I'm kind of confused now >.<
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
Yes but
SetPlayerTeam(playerid, 4);
I don't want to do this, because it will only set them to the team ID 4, isnt there a global thing?