Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Filterscript by Jizz
- //You may edit the scripts(add more weathers)
- //You may not edit the credit
- //Thank you
- /*
- $$$ $$$ $$$$$$$$$$$ $$$$$$$$$$$
- $$$ $$$ $$$ $$$
- $$$ $$$ $$$ $$$
- $$$ $$$ $$$ $$$
- $$$ $$$ $$$ $$$
- $$$ $$$ $$$ $$$
- $$$$ $$$ $$$ $$$ $$$
- $$$$$$$$ $$$ $$$ $$$
- $$$$ $$$ $$$$$$$$$$ $$$$$$$$$$$
- */
- #include <a_samp>
- #pragma tabsize 0
- #define COLOR_WHITE 0xFFFFFFAA
- public OnFilterScriptInit()
- {
- print("[FILTERSCRIPT]Weather FS by Jizz has loaded Successfully");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("[FILTERSCRIPT]Weather FS by Jizz has unloaded successfully");
- return 1;
- }
- #if defined FILTERSCRIPT
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/weather", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_WHITE, "You are not a RCON Admin.");
- ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "{0CD6E1} Weather Menu by Jizz","Sunny\nStormy\nAfternoon\nNight\nCloudy\nSandStorm\nBlueSky\n{BEE10C} By NTON","Ok","Exit");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(dialogid)
- {
- case 111:
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerWeather(playerid, 1);//Sunny
- }
- case 1:
- {
- SetPlayerWeather(playerid, 15);//Stormy
- }
- case 2:
- {
- SetPlayerWeather(playerid, 26);//Afternoon
- }
- case 3:
- {
- SetPlayerWeather(playerid, 31);//Night
- }
- case 4:
- {
- SetPlayerWeather(playerid, 9);//Cloudy
- }
- case 5:
- {
- SetPlayerWeather(playerid, 19);//SandStorm
- }
- case 6:
- {
- SetPlayerWeather(playerid, 29);//BlueSky
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement