Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Fuzzy168 on October 31, 2011, 05:06:38 am

Title: How to change time?
Post by: Fuzzy168 on October 31, 2011, 05:06:38 am
I want to change the time when player play. How to change??
Title: Re: How to change time?
Post by: Ankit on October 31, 2011, 06:15:06 am
Login With Your /admin <rcon_pass>
then do /sethr < hr : min>
example if you want to set 9:00 am
then /sethr 09:00
this could be done
Title: Re: How to change time?
Post by: Fuzzy168 on October 31, 2011, 06:40:28 am
when i am playing or use rcon? and will it save forever??
Title: Re: How to change time?
Post by: Ankit on October 31, 2011, 03:46:31 pm
about forever i dont have idea
u can swap that function from Gups
Title: Re: How to change time?
Post by: Fuzzy168 on October 31, 2011, 07:07:29 pm
you mean SetWorldTime()function?
Title: Re: How to change time?
Post by: heekz.shadow on October 31, 2011, 07:23:40 pm
Yeah.. Add this to OnGameModeInit




SetWorldTime(00); // 00 was used as an example for this, 00 stands for midnight.

You are not supposed to use my hour, you can use for other hours...
Title: Re: How to change time?
Post by: Morphine on November 01, 2011, 03:40:58 am
The time will save until your server crashes. (The RCON way)
















Of course, if you set the time rate to 0.
Title: Re: How to change time?
Post by: Fuzzy168 on November 01, 2011, 05:32:53 am
setworldtime is the same as sethr on rcon right?
Title: Re: How to change time?
Post by: Morphine on November 01, 2011, 05:53:56 am
Yes but that'll only set where the time starts from. If you want it to freeze on one particular moment you'll have to set the time RATE to 0.
Title: Re: How to change time?
Post by: Terminatorupgrade 2 on November 01, 2011, 08:47:55 pm
i wish i could go into future where 0.4 is released :)  . sup guys missed your friend ?
Login With Your /admin <rcon_pass>
then do /sethr < hr : min>
example if you want to set 9:00 am
then /sethr 09:00
this could be done

excuse me mr it has a mistakes it is [pawn]/sethr 09[/pawn] not /sethr 09:00 be carefull  next time :)