[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


Messages In This Thread
Versy simple weather system - by Neculai - 16.01.2015, 13:37
Re: Versy simple weather system - by AgusZ - 16.01.2015, 13:40
Re: Versy simple weather system - by Younes44 - 16.01.2015, 14:07

Forum Jump:


Users browsing this thread: 1 Guest(s)