27.12.2010, 23:34
pawn Код:
forward Round();
public Round()
{
if(GameSeconds || GameMinutes)
{
GameSeconds--;
if(GameSeconds <= -1)
{
GameMinutes--;
GameSeconds=59;
}
new TimeString[14];
format(TimeString,sizeof(TimeString),"%02d:%02d",GameMinutes,GameSeconds);
TextDrawSetString(rclock,TimeString);
if(GameMinutes == 0 && GameSeconds == 0)
{
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForAll("~r~Round Ended!",5000,3);
TogglePlayerControllable(i,0);
SH = SetTimer("ShowHonours",1000,true);
KillTimer(rcount);
}
}
}
return 1;
}