Jakwob-WG

Payout

Nov 25th, 2014
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.55 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. new GovermentPayRandom[][] =
  6.     {
  7.         {149},
  8.         {242},
  9.         {538},
  10.         {754},
  11.         {1422},
  12.         {22},
  13.         {864},
  14.         {392}
  15.     };
  16.  
  17. public OnFilterScriptInit()
  18. {
  19.     SetTimer("GovermentPayout", 1800000, 1);
  20.     return 1;
  21. }
  22.  
  23. forward GovermentPayout();
  24. public GovermentPayout()
  25. {
  26.     for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
  27.     {
  28.         new rand = random(sizeof(GovermentPayRandom));
  29.         GameTextForPlayer(i, "Goverment Payout", 1000, 1);
  30.         GivePlayerMoney(i, GovermentPayRandom[rand][0]);
  31.     }
  32.     return 1;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment