How to set time
#1

How do i change time in my server..is there any cmds?
Reply
#2

Seriously? Couldn't you ****** this?
SetWorldTime(Timer);
Reply
#3

Use
SetWorldTime(Timer); as Eoussama mentioned.
Reply
#4

but when i use it..in a while it dissapear
Reply
#5

Here is a really simple set time commands :

PHP код:
CMD:settime(playeridparams[])
{
 new 
string[128], time;
 if(
sscanf(params"i"time)) return SendClientMessage(playerid, -1"[USAGE]: /settime [time]");
 if(
time || time 23) return SendClientMessage(playerid, -1"Time is only 0 untill 23.");
 
SetWorldTime(time);
 
format(stringsizeof(string), "You have set time to %d."time);
 
SendClientMessage(playerid, -1string);
 return 
1;

I hope that will help you, sorry for my rip english.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)