02.04.2013, 03:40
Includes: BlueG R7 MySQL, Sscanf, Foreach, ZCMD
Plugins: BlueG R7 MySQL, Sscanf, Whirlpool
The issue: Team members can damage each other
Video: [ame]http://youtube.com/watch?v=Q5e4dqvzOAs&feature=*******[/ame]
I'm using AddPlayerClassEx to set the player's team:
This is my command to see the teams as you can see in the video:
This returns the proper values.
As you can see in the first part of the video where we're on different teams, we take damage normally. In the second part where we're both blue, we still take damage from shooting each other even though we're on the same team, confirmed by /teams.
Plugins: BlueG R7 MySQL, Sscanf, Whirlpool
The issue: Team members can damage each other
Video: [ame]http://youtube.com/watch?v=Q5e4dqvzOAs&feature=*******[/ame]
I'm using AddPlayerClassEx to set the player's team:
pawn Код:
for(new teamIndex; teamIndex < 2; teamIndex++)
{
for(new skinIndex; skinIndex < SKIN_AMOUNT; skinIndex++)
{
teamClasses[teamIndex][skinIndex] = AddPlayerClassEx(teamIndex, teamSkins[teamIndex][skinIndex], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
}
pawn Код:
COMMAND:teams(playerid, params[])
{
new clientMessage[128];
format(clientMessage, sizeof(clientMessage), "[TEAMS] Player 0: %d, Player 1: %d", GetPlayerTeam(0), GetPlayerTeam(1));
SendClientMessageToAll(-1, clientMessage);
return 1;
}
As you can see in the first part of the video where we're on different teams, we take damage normally. In the second part where we're both blue, we still take damage from shooting each other even though we're on the same team, confirmed by /teams.