06.09.2008, 20:37
so this?
also i got errors with gTimeLeft so would it be right if i did
also i got errors with gTimeLeft so would it be right if i did
pawn Код:
new; gTimeLeft
pawn Код:
forward Decrease_gTimeLeft();
public Decrease_gTimeLeft()
{
gTimeLeft = gTimeLeft - 1;
if(gTimeLeft == 0)
{
new string[128];
new Time1 = gRoundTime / 1000;
new Minutes = Time1 / 60;
new Seconds = Time1 - Minutes * 60;
format(string, sizeof(string), "There is currently %d:%d left in the round ", Minutes, Seconds);
for(new i = 0, m = GetMaxPlayers(); i < m; i++) if(IsPlayerConnected(i)) SendClientMessage(i, LIGHTGREEN, string);
}
}