Trying to get map to change after X amount of kills.
#8

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    tscore[gTeam[killerid]]++;
    if(tscore[gTeam[killerid]] == 10)
    {
        new pstring[128];
        format(pstring,sizeof(pstring), "%s has won the round for his Team.",GetName(killerid));
        SendClientMessageToAll(COLOR_CYAN, pstring);
        ChangeMode();
    }
}

forward ChangeMode();
public ChangeMode()
{
    if(CurrentGamemode == 5) CurrentGamemode = 0;
    else CurrentGamemode++;
    ServerMinutes = 9;
    ServerSeconds = 59;
}
What's actually being changed aside from some variable values (whats currentgamemode doing)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)