|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Jan 2010
Location: Ireland
Posts: 172
Reputation: 23
|
This is my third release after the cruise control and the cb system. This filterscript allows you to set different weather to all parts of San Andreas (9 areas). The weather streams to player whenever they enter the area. Very simple and brings a lot to the game play. The FS sports 2 public functions that you can call from your gamemode:
Code:
stock SetAreaWeather(areaid, weatherid); stock GetPlayerWeatherArea(playerid); There is also a callback: Code:
OnPlayerEnterWeatherArea(playerid, areaid, weatherid); The area ids are defined as follows: Code:
#define WEATHER_AREA_NONE 0 #define WEATHER_AREA_LOS_SANTOS 1 #define WEATHER_AREA_LAS_VENTURAS 2 #define WEATHER_AREA_BONE_COUNTY 3 #define WEATHER_AREA_TIERRA_ROBADA 4 #define WEATHER_AREA_SAN_FIERRO 5 #define WEATHER_AREA_RED_COUNTY 6 #define WEATHER_AREA_FLINT_COUNTY 7 #define WEATHER_AREA_WHETSTONE 8 How to install: * place WeatherStreamer.amx in your filterscripts folder * Add WeatherStreamer to the filterscripts line in server.cfg * place WeatherStreamer.inc in your pawno\include folder * Put #include <WeatherStreamer> on top of your gamemode script I recommend that you enable player clock in your GM - TogglePlayerClock(playerid, 1) to make weather changes smoother. Example of use: Code:
SetBoneCountyWeather(sandstorm)
{
if (sandstorm) SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 19);
else SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 1);
}
UPDATE 1.2: * Added public functions GetAreaWeather() and GetPlayerWeather() * Changed default timer interval to 5000 ms Last edited by mick88; 24/08/2010 at 03:07 PM. |
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: May 2009
Location: C:\Windows\System32\brian_furious.dll
Posts: 749
Reputation: 40
|
Incredible, i'll test it...it looks nice
|
|
|
|
|
|
#3 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2010
Location: Ohio, US
Posts: 7,233
Reputation: 533
|
Wow! Is this what's running on your server?
|
|
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2007
Posts: 364
Reputation: 6
|
Now thats a very unique idea, Awesome.
|
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Jan 2010
Location: Ireland
Posts: 172
Reputation: 23
|
|
|
|
|
|
|
#6 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Nov 2009
Posts: 555
Reputation: 1
|
Wow, I didn't think this was possible. I'll have a look at your code to see how it works
|
|
|
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: England
Posts: 2,207
Reputation: 59
|
wow, amazing!
|
|
|
|
|
|
#8 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2010
Posts: 278
Reputation: 1
|
Rly nice FS
|
|
|
|
|
|
#9 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2009
Posts: 705
Reputation: 9
|
More simple then i thought. Can't believe nobody made this before.
Useful for RP servers like a mofucka. |
|
|
|
|
|
#10 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: England
Posts: 2,207
Reputation: 59
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Include] [INC] TSS - tAxI's Streamer Systems: full Streamer + HOUSING SYSTEM Utillity | cptnsausage | Includes | 101 | 24/08/2012 12:05 AM |
| Need 3dtextlabel Streamer And Gangzone Streamer !! Please Help . Not streamer plugin . | jame42 | Scripting Help | 4 | 30/05/2012 07:33 AM |
| [Include] [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! | Yaheli_Faro | Includes | 46 | 20/04/2010 02:53 PM |
| Dominator's Object Streamer - a wize and new streamer - invisible objects fix | tsha | Filterscripts | 23 | 19/09/2009 08:37 PM |
| About weather | xploit101 | Help Archive | 5 | 09/09/2009 12:34 PM |