18.05.2011, 07:31
Heey guys,
I made a gametime from every minute is 1 hour. But when a players dies the time second is set on 00.
Is there anyway to get the seconds?
Here is my timer:
I made a gametime from every minute is 1 hour. But when a players dies the time second is set on 00.
Is there anyway to get the seconds?
Here is my timer:
Код:
//ongamemodeinit SetTimer("TimeWorld",60000,1);//chnge public TimeWorld(playerid) { if(gameweek == 2)//gametime == 0 && gameday == 1 { GameTextForAll("Changing Cities! Please Wait!",6000,1); SendRconCommand("gmx"); } gametime++; if(gametime >= 24) { gametime =0; } if(gametime == 0) { gameday ++; } for(new i=0; i < MAX_PLAYERS; i++) { SetPlayerTime(i,gametime,0); } new string[30]; SetWorldTime(gametime); format(string, sizeof(string), "[GAME TIME] %d:00", gametime); SendClientMessageToAll(COLOR_WHITE, string);