How do I do this?
#4

pawn Код:
stock NewRound()
{
    new count, count2;
    for (new i = 0; i < MAX_PLAYERS; i ++)
    {
        if (IsPlayerConnected(i)) count++;
        if (gTeam[i] == TEAM_ZOMBIE) count2++;
    }
    if (count1 == count2)
    {
        SendRconCommand("gmx");
    }
    return 1;
}
That's a function. Add it into the bottom of your script. Then you can do something like this:

pawn Код:
CMD:newround(playerid, params[])
{
    NewRound();
    return 1;
}
Reply


Messages In This Thread
How do I do this? - by Deaglez - 28.10.2012, 07:23
Re: How do I do this? - by Emmet_ - 28.10.2012, 07:24
Re: How do I do this? - by Deaglez - 28.10.2012, 07:31
Re: How do I do this? - by Emmet_ - 28.10.2012, 07:35
Re: How do I do this? - by Deaglez - 28.10.2012, 07:53
Re: How do I do this? - by Emmet_ - 28.10.2012, 07:54
Re: How do I do this? - by JaKe Elite - 28.10.2012, 07:56
Re: How do I do this? - by Emmet_ - 28.10.2012, 07:57
Re: How do I do this? - by Deaglez - 28.10.2012, 07:59
Re: How do I do this? - by JaKe Elite - 28.10.2012, 08:03

Forum Jump:


Users browsing this thread: 1 Guest(s)