Author Topic: How to change time?  (Read 3630 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
How to change time?
« on: October 31, 2011, 05:06:38 am »
I want to change the time when player play. How to change??
I'm beginning to feel like a Lag God, Lag God

Offline Ankit

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Re: How to change time?
« Reply #1 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
Name-Ankit Sharma
Age- 10
Location-India
WorkGroup:Small player and Scripter

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to change time?
« Reply #2 on: October 31, 2011, 06:40:28 am »
when i am playing or use rcon? and will it save forever??
I'm beginning to feel like a Lag God, Lag God

Offline Ankit

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Re: How to change time?
« Reply #3 on: October 31, 2011, 03:46:31 pm »
about forever i dont have idea
u can swap that function from Gups
Name-Ankit Sharma
Age- 10
Location-India
WorkGroup:Small player and Scripter

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to change time?
« Reply #4 on: October 31, 2011, 07:07:29 pm »
you mean SetWorldTime()function?
I'm beginning to feel like a Lag God, Lag God

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: How to change time?
« Reply #5 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...
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline Morphine

  • Made Man
  • ***
  • Posts: 109
    • View Profile
Re: How to change time?
« Reply #6 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.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to change time?
« Reply #7 on: November 01, 2011, 05:32:53 am »
setworldtime is the same as sethr on rcon right?
I'm beginning to feel like a Lag God, Lag God

Offline Morphine

  • Made Man
  • ***
  • Posts: 109
    • View Profile
Re: How to change time?
« Reply #8 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.

Offline Terminatorupgrade 2

  • Wiseguy
  • **
  • Posts: 91
  • pawno scripter
    • View Profile
Re: How to change time?
« Reply #9 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 :)