Problem with map changing system
#10

You have not read my post correctly.

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)

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.
Reply


Messages In This Thread
Problem with map changing system - by SpikY_ - 13.06.2015, 11:06
Re: Problem with map changing system - by MohammedZ - 13.06.2015, 11:20
Re: Problem with map changing system - by SpikY_ - 13.06.2015, 11:24
Re: Problem with map changing system - by SpaceX - 13.06.2015, 11:34
Re: Problem with map changing system - by SpaceX - 13.06.2015, 11:37
Re: Problem with map changing system - by SpikY_ - 13.06.2015, 11:50
Re: Problem with map changing system - by SpaceX - 13.06.2015, 13:19
Re: Problem with map changing system - by SpikY_ - 15.06.2015, 07:47
Re: Problem with map changing system - by SpikY_ - 15.06.2015, 07:55
Re: Problem with map changing system - by SpaceX - 15.06.2015, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)