Posts: 47
Threads: 6
Joined: Oct 2013
Reputation:
0
I Am Using A TDM server i have 5 teams i have added dm arena the problem is team members can't fight each other as we have defied it in gm that team members can't fight each other ..i need team members and all to be able to kill each other in dm zone alone how too? ....
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
What would be the point of teams then if they kill their team mates? ...
If SetPlayerTeam was used, they cannot kill players from the same team unless they do it with knife. Set the team to NO_TEAM (255) to prevent it.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
Yes, if you NEED teams but want team damage as well then you'll need to create your own team system.
Posts: 47
Threads: 6
Joined: Oct 2013
Reputation:
0
no brothers i need teams while playing ...i need team members to be able to fight in dm arena alone how??
please help...
Posts: 1,099
Threads: 79
Joined: Nov 2011
Reputation:
0
SetPlayerTeam (playerid,playerid+6);
This will simply set the players team to something 6 more than their ID so it will be randomized since a player can't have the same ID assigned to another player.This way it won''t collide with the team system you have.
Ofcourse, after they die force them to class selection or set their old team to a variable and re-set it.
Posts: 47
Threads: 6
Joined: Oct 2013
Reputation:
0
Thank u all ...
found 2 solution both
1.SetPlayerTeam(playerid, NO_TEAM);
2.SetPlayerTeam (playerid,playerid+6);
Are working Good