#1

Not chaning time what i going to do?

Код:
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);
		FixHour(time);
		shifthour = time;
		ghour = time;
		wtime = 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;
}
Reply


Messages In This Thread
/tod - by raamiix - 26.03.2013, 18:43
Re: /tod - by Jeffry - 26.03.2013, 18:45
Re: /tod - by raamiix - 26.03.2013, 18:47
Re: /tod - by vitorvlv - 26.03.2013, 19:07
Re: /tod - by raamiix - 26.03.2013, 19:18
Re: /tod - by Jeffry - 27.03.2013, 11:41
Re: /tod - by raamiix - 27.03.2013, 18:25
Re: /tod - by gtakillerIV - 27.03.2013, 18:35
Re: /tod - by raamiix - 27.03.2013, 18:52
Re: /tod - by Jeffry - 28.03.2013, 11:17

Forum Jump:


Users browsing this thread: 3 Guest(s)