How to set time
#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


Messages In This Thread
How to set time - by tharvin - 26.01.2017, 09:44
Re: How to set time - by Eoussama - 26.01.2017, 09:47
Re: How to set time - by Ultraz - 26.01.2017, 09:51
Re: How to set time - by tharvin - 26.01.2017, 11:01
Re: How to set time - by haikalbintang - 30.01.2017, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)