Help about command fix world time
#1

I wan't to change the time of the sever to night to place a party, but I use this commands It's working but after that 30 - 60 second, the time will return to day. How to config it bro
Quote:

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

SetWorldTime(time);
format(string, sizeof(string), "Thoi Gian Chinh Thanh %d:00.", time);
SendClientMessageEx(playerid, COLOR_GREY, string);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "{FF0000}Ban Khong Du Kha Nang De Su Dung Lenh Nay!");
}
return 1;
}
forward todtime();
public todtime()
{
SetWorldTime(0);
GioFix = SetTimerEx("todtime1", 10000, 0, "d", 1);
}

forward todtime1();
public todtime1()
{
SetWorldTime(0);
GioFix1 = SetTimerEx("todtime", 1000, 0, "d", 1);
}

CMD:efixtime(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
SetWorldTime(0);
SetTimerEx("todtime", 1000, 0, "d", 1);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "Ban ko du kha nang de thuc hien lenh nay!");
}
return 1;
}

CMD:dfixtime(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
new string[128], time;
if(sscanf(params, "d", time)) return SendClientMessageEx(playerid, COLOR_WHITE, "Su Dung: /dfixtime [time] (0-23)");

SetWorldTime(time);
format(string, sizeof(string), "Thoi gian bay gio la %d:00.", time);
SendClientMessageToAllEx(COLOR_GRAD1,string);
KillTimer(GioFix);
KillTimer(GioFix1);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "Ban ko du kha nang de thuc hien lenh nay!");
}
return 1;
}

Reply
#2

Am i able to know your Gamemode script name? and one more thing , check there any line like this or not
PHP код:
new realtime 
Reply
#3

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
Am i able to know your Gamemode script name? and one more thing , check there any line like this or not
PHP код:
new realtime 
I use mode NGG, and the second thing, your line is not in my script
Reply
#4

Hmm! NGG. As long as i know There must be a line like this. Over check all files.
Reply
#5

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
Hmm! NGG. As long as i know There must be a line like this. Over check all files.
I have find all but I can't find this line, and the mode when running still change the time of sever in 30 - 60 seconds and the time will return to day. Help me please
Reply
#6

Isn't that working cuz of the timer ?
Reply
#7

Someone help me this problem please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)