Game time
#2

Something like this?

Код:
if(strcmp(cmd, "/tod", true) == 0)
{
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Usage: /tod [timeofday] (0-23)");
	if(PlayerInfo[playerid][pAdmin] >= 1337) return SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
	for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected) SetPlayerTime(i, strval(tmp), 0);
	format(string, sizeof(string), " Time set to %d:00.", strval(tmp));
	return BroadCast(COLOR_GRAD1, string);
}
Or you need the automatic time change?
Reply


Messages In This Thread
Game time - by MichaelWharton101 - 08.04.2013, 23:25
Re: Game time - by Pawnie - 08.04.2013, 23:31
Re: Game time - by MichaelWharton101 - 08.04.2013, 23:38
Re: Game time - by MichaelWharton101 - 09.04.2013, 00:00
Re: Game time - by Pawnie - 09.04.2013, 02:24
Re: Game time - by MichaelWharton101 - 10.04.2013, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)