Jump to content

Recommended Posts

Posted (edited)

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
  • 3 weeks later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.