How To Change Server Time To Midnight - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How To Change Server Time To Midnight (
/showthread.php?tid=325885)
How To Change Server Time To Midnight -
Awankz - 15.03.2012
Can Someone help me ?
Re: How To Change Server Time To Midnight -
GNGification - 15.03.2012
https://sampwiki.blast.hk/wiki/SetPlayerTime
Something I made quickly with pawno as an example:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/time", cmdtext, true, 10) == 0)
{
SetPlayerTime(playerid,0,0);
return 1;
}
return 0;
}
Or as vincent said, this is usefull too to set it for all
https://sampwiki.blast.hk/wiki/SetWorldTime
Re: How To Change Server Time To Midnight -
ReneG - 15.03.2012
Quote:
Originally Posted by GNGification
https://sampwiki.blast.hk/wiki/SetPlayerTime
Something I made quickly with pawno as an example:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/time", cmdtext, true, 10) == 0)
{
SetPlayerTime(playerid,0,0);
return 1;
}
return 0;
}
|
Take note that ^^ changes the player's time.
Sets the server time instead.
Re: How To Change Server Time To Midnight -
Awankz - 15.03.2012
Thanks You both im new in Scripting
Re: How To Change Server Time To Midnight -
ReneG - 15.03.2012
Quote:
Originally Posted by Awankz
Thanks You both im new in Scripting
|
You are very welcome, be sure to read the wiki's and if you ever need any help we are right here if you need anything.
Re: How To Change Server Time To Midnight -
Awankz - 15.03.2012
ok thanks