[FilterScript] Versy simple weather system
#1

Код:
#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
Reply
#2

nice bro
Reply
#3

Good job...
Keep it up
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)