Ends round with no one alive
#1

I am making a tdm script and I have the command where I use

/start and it will add both teams to the arena, and they can fight.

But how do I make it say, "BLUE TEAM WINS!" when they kill all the red team in the arena?


pawn Код:
if(!strcmp(cmdtext, "/start", true, 8))
    {
        if(isclanwarstarted == 0)
        {
            new string[128];
            format(string, sizeof(string), "** Prepare yourself, a round is about to start!");
            SendClientMessageToAll(COLOR_MESSAGE, string);
            SetTimer("startcw", 5000, false);
            isclanwarstarted = 1;
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                PlayerPlaySound(i, 1139, 0.0, 0.0, 0.0);
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_ERROR, "ERROR: A round is currently running active!");
            PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
        }
        return 1;
    }
Reply


Messages In This Thread
Ends round with no one alive - by (_AcE_) - 19.07.2012, 16:56
Re: Ends round with no one alive - by Benjo - 19.07.2012, 18:01
Re: Ends round with no one alive - by (_AcE_) - 20.07.2012, 01:51
Re: Ends round with no one alive - by [KHK]Khalid - 20.07.2012, 01:57

Forum Jump:


Users browsing this thread: 1 Guest(s)