1. Post #1
    I call in friends to rate KatNotDinner dumb (lol)
    nick_9_8's Avatar
    December 2011
    1,625 Posts
    Hi all,

    I am using WeatherModV7 and I really want to have it automatic. I'll explain what I want done.

    Every 10-30 minutes, the command weather_storm is executed. (When weather_storm is activated, something in the chat should print: "A storm has started! Get undercover!"
    10-30 minutes after that command is executed, the command weather_stopstorm is executed. (When weather_stopstorm in activated, print in the chat "The storm has ended."

    Also, I want to have it so no player can use the commands weather_storm, weather_stopstorm or weather_select. (only this script can activate them.
    I'm sure this would be basic, but my LUA knowledge is very limited!

    Thanks heaps in advance <3

  2. Post #2

    April 2011
    273 Posts
    there is already a weather cycle for that addon nick

    http://www.garrysmod.org/downloads/?a=view&id=120325
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Winner Winner x 2 (list)

  3. Post #3
    I call in friends to rate KatNotDinner dumb (lol)
    nick_9_8's Avatar
    December 2011
    1,625 Posts
    Legend
    Reply With Quote Edit / Delete Reply Windows 7 Australia Show Events Agree Agree x 1 (list)

  4. Post #4
    Blue and Proud Of It.
    Dennab
    September 2011
    961 Posts
    Couldn't you set up a timer to do this? I know it's been answered but just for future reference. Then, if you wanted random weather you could use table.Random to select a weather type every x minutes
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Dumb Dumb x 3 (list)

  5. Post #5
    I call in friends to rate KatNotDinner dumb (lol)
    nick_9_8's Avatar
    December 2011
    1,625 Posts
    Couldn't you set up a timer to do this? I know it's been answered but just for future reference. Then, if you wanted random weather you could use table.Random to select a weather type every x minutes
    my LUA knowledge is very limited!
    Shall I go on?
    Reply With Quote Edit / Delete Reply Windows 7 Australia Show Events Disagree Disagree x 2 (list)