CMD:tod problem.
#1

Hi guys, i have a tod command to set players command but the problem is when i do /tod [time] [minutes] the time has applied but within a few seconds the time is rolling back like before -_- Anyone know how to fix this? And here's the command

Код:
CMD:tod(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] >= 1337)
	{
		new string[128], time;
		if(sscanf(params, "d", time)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /tod [time] (0-23)");

		SetWorldTime(time);
		gTime = time;
		format(string, sizeof(string), "Time set to %d:00.", time);
		BroadCast(COLOR_GRAD1, string);
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	}
	return 1;
}
Thanks guys
Reply


Messages In This Thread
CMD:tod problem. - by 0B3Y - 26.07.2014, 00:25
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 00:33
Re: CMD:tod problem. - by 0B3Y - 26.07.2014, 00:37
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 00:44
Re: CMD:tod problem. - by 0B3Y - 26.07.2014, 00:54
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 01:06
Re: CMD:tod problem. - by 0B3Y - 26.07.2014, 01:11
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 01:14
Re: CMD:tod problem. - by 0B3Y - 26.07.2014, 01:18
Re: CMD:tod problem. - by Blademaster680 - 26.07.2014, 01:28

Forum Jump:


Users browsing this thread: 1 Guest(s)