28.07.2009, 22:14
Код:
public EndGameTimer()
{
new string[128];
if(copsscore == 10)
{
format(string,sizeof(string),"~r~Cops Have Won");
GameTextForAll(string, 5000, 5);
SetTimer("RestartGameMode", 10000, false);
}
else if(otherteamscore == 10)
{
format(string,sizeof(string),"~r~OtherTeam Wins");
GameTextForAll(string, 5000, 5);
SetTimer("RestartGameMode", 10000, false);
}
}
public RestartGameMode()
{
SendClientMessageToAll(COLOR_YELLOW, "Game has been completed, restarting gamemode to start again");
SendRconCommand("gmx");
}

