Jump to content

Meteo FS


TheWolf

Recommended Posts

Se pare ca nu mai am nevoie de acest script si m-am gandit sa vi-l daruiesc voua :)

Acesta schimba automat vremea odata la: 1 minut

                                                                    2 minute

                                                                    3 minute

                                                                     4 minute

                                                                      5 minute

                                                                      10 minute

                                                                       20 minute

Este foarte bun pentru serverele RPG

vjWU9wp.png

 

 

#include <a_samp>

#define FILTERSCRIPT
#if defined FILTERSCRIPT

forward WeatherAndTime();

// id timp
new const RandomWorldTime[24][1] =
{
    {0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},{15},{16},{17},{18},{19},{20},{21},{22},{23}
};

// Id vreme
new const RandomWeather[11][1] =
{
    {1},{2},{3},{4},{5},{7},{8},{9},{10},{15},{16}
};

public OnFilterScriptInit()
{
    print("n---------------------------------------------------------------");
    print(" Script incarcat");
    print("---------------------------------------------------------------n");

    //Timer
    SetTimer("WeatherAndTime", 900000, true);
    //60000 - 1 minute
    //120000 - 2 minute
    //180000 - 3 minute
    //240000 - 4 minute
    //300000 - 5 minute
    //500000 - 10 minute
    //900000 - 20 minute
    return 1;
}

public OnFilterScriptExit()
{
    print(" Crysty's Automatic Weather and Time unloaded.");
    return 1;
}


public WeatherAndTime()
{
    new rwt = random(sizeof RandomWorldTime);
    SetWorldTime(RandomWorldTime[rwt][0]);
    new rw = random(sizeof RandomWeather);
    SetWeather(RandomWeather[rw][0]);
    SendClientMessageToAll(0xFFFFFF, "{CCFF00}Meteo: {FFFFFF}Weather and time updated.{FF3366} Every 20 minutes the weather will change");// Sends a message every ten minutes to all players.
}
#endif
 

Edited by ★ єXэ ★
  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.