Hello i need timer for this 3 minigames. When moneybox end - deathmatch starts after 30 minutes and when deathmatch ends streetrace start after 30 minutes. This is my code:
Код:
if (IsPlayerInRangeOfPoint(playerid, 3.0,Race4))
{
format(string2, sizeof(string2), "Street Race: %s спечели съзтезанието!",PlayerName(playerid));
SendClientMessageToAll(COLOR_BLUE, string2);
format(string2, sizeof(string2), "Който успее убие %s до 5 минути ще спечели +1 CMN1 Kill!",PlayerName(playerid));
SendClientMessageToAll(COLOR_ORANGE, string2);
PlayerInfo[playerid][pCMN1] = 1;
PlayerInfo[playerid][pCMN1T] = 5*60;
PlayerInfo[playerid][pCMN1T3] = 5*60;
Moneybox = 1;
Race = 0;
DisablePlayerCheckpoint(i);
}
if (IsPlayerInRangeOfPoint(playerid, 3.0,MB2) && PlayerInfo[playerid][pKufar] >= 1)
{
PlayerInfo[playerid][pZvezda1] += 2;
PlayerInfo[playerid][pWantedLevel]+= 2;
PlayerInfo[i][pDMF2] = 1*1;
format(string2, sizeof(string2), "Moneybox: %s достави куфара!",PlayerName(playerid));
SendClientMessage(i, COLOR_GREEN, string2);
format(string2, sizeof(string2), "Който успее убие %s до 5 минути ще спечели +1 CMN1 Kill!",PlayerName(playerid));
SendClientMessageToAll(COLOR_ORANGE, string2);
PlayerInfo[playerid][pCMN1] = 1;
PlayerInfo[playerid][pCMN1T] = 5*60;
PlayerInfo[playerid][pCMN1T3] = 5*60;
PlayerInfo[playerid][pZvezda1] += 2;
Kufar = 0;
Moneybox = 0;
Death = 1;
SendClientMessage(playerid,COLOR_GREEN,"Moneybox: Ти достави куфара и получи $5000 и 1 EP!");
GameTextForPlayer(i, "~w~Mission~n~~r~Deathmatch", 3000, 1);
GivePlayerMoney(playerid, 5000);
PlayerInfo[playerid][Exp]+= 1;
PlayerInfo[playerid][pMon] += 1;
PlayerInfo[i][pMoney] = 0;
PlayerInfo[i][pDM] = 1*1;
PlayerInfo[i][pKufar] = 0;
DisablePlayerCheckpoint(i);
DisablePlayerCheckpoint(playerid);
}
}
}
I doubt you can make anything of that,though instead of using += 1; you can simply do ++;