About tod
#3

Try with this

//----------------------------------[TOD]-----------------------------------------------

if(strcmp(cmd, "/tod", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /tod [timeofday] (0-23)");
return 1;
}
new hour;
hour = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
SetWorldTime(hour);
format(string, sizeof(string), " Time set to %d:00.", hour);
BroadCast(COLOR_GRAD1, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
}
}
return 1;
}
Reply


Messages In This Thread
About tod - by ChrisRedfield00 - 02.05.2012, 09:33
Re: About tod - by MP2 - 02.05.2012, 09:35
Re: About tod - by Emil123 - 02.05.2012, 10:25
Re : About tod - by ChrisRedfield00 - 02.05.2012, 10:57
Re : Re: About tod - by ChrisRedfield00 - 02.05.2012, 10:59
Re : Re: About tod - by ChrisRedfield00 - 02.05.2012, 11:02
Re : Re: About tod - by ChrisRedfield00 - 03.05.2012, 11:31
Re: About tod - by MadeMan - 03.05.2012, 11:51
Re : Re: About tod - by ChrisRedfield00 - 03.05.2012, 13:37
Re: About tod - by MadeMan - 03.05.2012, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)