15.06.2015, 11:05
You have not read my post correctly.
1. Defenders win and attackers lose.
2. Attackers win and defenders lose.
3. Timer runs out -> no-one wins or loses. (it's a tie)
Like you've made gTeam in your main post for winners, make an fTeam or any other variable for losers and use the if-else commands above.
Leave the body the same as it is.
Leave the other body part the same but modify as per needs. (the modify part is the messages I'm talking about.)
I've summarized it all in my post above, please go through it again.
PHP код:
1. if(gTeam[i] == TEAM_DEFENDERS && fTeam[i] == TEAM_ATTACKERS)
{
//body
}
2. else if(gTeam[i] == TEAM_ATTACKERS && fTeam[i] == TEAM_DEFENDERS)
{
//body
}
3. else
{
//body when no one wins (timer runs out)
}
2. Attackers win and defenders lose.
3. Timer runs out -> no-one wins or loses. (it's a tie)
Like you've made gTeam in your main post for winners, make an fTeam or any other variable for losers and use the if-else commands above.
Leave the body the same as it is.
Leave the other body part the same but modify as per needs. (the modify part is the messages I'm talking about.)
I've summarized it all in my post above, please go through it again.