SA-MP Forums Archive
[FilterScript] Versy simple weather system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Versy simple weather system (/showthread.php?tid=558221)



Versy simple weather system - Neculai - 16.01.2015

Код:
#include <a_samp>

#define FILTERSCRIPT
#if defined FILTERSCRIPT

forward Weather();



static const RandomWeather[][] =
{
{"Good weather",1},
{"Sandstorm",19},
{"Storm",9},
{"Misty",42},
{"Extrasunny desert",17},
{"Rain",8}
};

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

  //Timer
  SetTimer("Weather", 3600*1000, true);
  return 1;
}




public Weather()
{
  new rw = random(sizeof RandomWeather);
  new p[69];
  SetWeather(RandomWeather[0][rw]);
  format(p,sizeof(p),"{00FF00}Wether Info{6600CC}>{00FF00}Now is:{006666}%s",RandomWeather[rw][0]);
  SendClientMessageToAll(0xFFFFFF, p);
}
#endif



Re: Versy simple weather system - AgusZ - 16.01.2015

nice bro


Re: Versy simple weather system - Younes44 - 16.01.2015

Good job...
Keep it up