Guest User

PayDay

a guest
Dec 10th, 2013
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. /*
  2. ***Credits***
  3. SAMP Community for <a_samp>
  4. PDS2012 for scripting &
  5. you for using it
  6.  
  7.  
  8.  
  9. ***Social Network***
  10. FORUM: [url]http://forum.sa-mp.com/member.php?u=178953[/url]
  11. SKYPE: patricksubang11
  12.  
  13.  
  14.  
  15. ***Attention***
  16. Please dont remove credits
  17.  
  18. */
  19.  
  20. #include <a_samp>
  21.  
  22. #define FILTERSCRIPT
  23.  
  24. //--------Forwards--------//
  25. forward Payday();
  26.  
  27. public OnFilterScriptInit()
  28. {
  29. SetTimer("Payday",86400000,1);//24 hours or 1 day
  30.  
  31. print("\n--------------------------------------");
  32. print("PayDay System By: PDS2012 Loaded...");
  33. print("--------------------------------------\n");
  34. return 1;
  35. }
  36.  
  37. public OnFilterScriptExit()
  38. {
  39. print("\n--------------------------------------");
  40. print("PayDay System By: PDS2012 UnLoaded...");
  41. print("--------------------------------------\n");
  42. return 1;
  43. }
  44.  
  45. public Payday()
  46. {
  47. new payday =random(40000); //random pay MAX: $40,000
  48. new string[128];
  49. for(new i = 0; i < MAX_PLAYERS; i++)
  50. {
  51. format(string,sizeof(string),"~b~Payday: ~p~$%d", payday);
  52. GameTextForAll(string, 5000, 5);
  53. GivePlayerMoney(i,payday);
  54. }
  55. return 1;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment