How do I change default ToD
#5

Код:
Add this to OnPlayerCommandText, any error/Warnings post them and ill post what you need.

 	if(strcmp(cmd, "/tod", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /tod [timeofday] (0-23)");
				return 1;
			}
			new hour;
			hour = strval(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 20)
			{
	      SetWorldTime(hour);
			}
			else
			{
				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Your not an administrator/correct level.");
			}
		}
		return 1;
	}
EDIT: You can change weather IG
Reply


Messages In This Thread
How do I change default ToD - by SLaY3R - 17.03.2009, 22:41
Re: How do I change default ToD - by ICECOLDKILLAK8 - 17.03.2009, 22:55
Re: How do I change default ToD - by Dujma - 17.03.2009, 22:56
Re: How do I change default ToD - by brett7 - 17.03.2009, 23:03
Re: How do I change default ToD - by Austin_Lynn - 17.03.2009, 23:04
Re: How do I change default ToD - by brett7 - 17.03.2009, 23:17
Re: How do I change default ToD - by SLaY3R - 17.03.2009, 23:30
Re: How do I change default ToD - by brett7 - 17.03.2009, 23:38
Re: How do I change default ToD - by SLaY3R - 18.03.2009, 00:08
Re: How do I change default ToD - by ICECOLDKILLAK8 - 18.03.2009, 01:14

Forum Jump:


Users browsing this thread: 2 Guest(s)