Advertisement
Darky

Colored Moneys 0.3d

Mar 9th, 2012
3,033
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.64 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. /*
  3.  _____            _           _
  4. |_   _|          | |         | |
  5.   | |  _ __   ___| |_   _  __| | ___ ___
  6.   | | | '_ \ / __| | | | |/ _` |/ _ | __|
  7.  _| |_| | | | (__| | |_| | (_| |  __|__ \
  8.  \___/|_| |_|\___|_|\__,_|\__,_|\___|___/
  9.  */
  10.  
  11. #include <a_samp>
  12. ////////////////////////////////////////////////////////////////////////////////
  13. /*
  14.  _   _
  15. | \ | |
  16. |  \| | _____      _____
  17. | . ` |/ _ \ \ /\ / / __|
  18. | |\  |  __/\ V  V /\__ \
  19. \_| \_/\___| \_/\_/ |___/
  20. */
  21.  
  22. new Text:Cash[MAX_PLAYERS];
  23. new Text:Dollar;
  24. new Check;
  25. ////////////////////////////////////////////////////////////////////////////////
  26. /*
  27.   ___       _   _            _   _
  28.  / _ \     | | (_)          | | (_)
  29. / /_\ \ ___| |_ ___   ____ _| |_ _  ___  _ __
  30. |  _  |/ __| __| \ \ / / _` | __| |/ _ \| '_ \
  31. | | | | (__| |_| |\ V / (_| | |_| | (_) | | | |
  32. \_| |_/\___|\__|_| \_/ \__,_|\__|_|\___/|_| |_|
  33. */
  34.  
  35. public OnFilterScriptInit()
  36. {
  37.     print("                _ ___                /^^. /^.  /^^._");
  38.     print("    _          _@)@) .            ,,/ '` ~ `'~~ ', `..");
  39.     print("  _/o._ _ _ _/~`.`...'~.        ./~~..,'`','',.,' '  ~:");
  40.     print(" / `,'.~,~.~  .   , . , ~|,   ,/ .,' , ,. .. ,,.   `,  ~._");
  41.     print("( ' _' _ '_` _  '  .    , `._/ .' ..' '  `  `   `..  `,   ._");
  42.     print(" ~V~ V~ V~ V~ ~. `   ' .  '    , ' .,.,''`.,.''`.,.``. ',   ._");
  43.     print("  _/. /. /. /._/, . ' ,   `_/~._ .' .,. ,, , _/~._ `. `. '.,  ._");
  44.     print(" < ~ ~ '~`'~'`, .,  .   `_: ::: ._ '      `_/ ::: ._ `.,' . ',  ._");
  45.     print("  . ' `_  '`_    _    ',/ _::_::_ . _    _/ _::_::_ .   `.,'.,`., .-,-,-,_,_,");
  46.     print("   `'~~ `'~~ `'~~ `'~~  .(_)(_)(_)/  `~~' .(_)(_)(_)/ ~'`._.._,._,'_;_;_;_;_;");
  47.     print(" _____________________________________________________________________________ ");
  48.     print("|                                                                             |");
  49.     print("|                              Colored Moneys                                 |");
  50.     print("|                             Created by Darky                                |");
  51.     print("|                             ________________                                |");
  52.     print("|                                 LOADED !                                    |");
  53.     print("|                                                                             |");
  54.     print("|_____________________________________________________________________________|");
  55.     return 1;
  56. }
  57. ////////////////////////////////////////////////////////////////////////////////
  58. /*
  59. ______                   _   _            _   _
  60. |  _  \                 | | (_)          | | (_)
  61. | | | |___ ______ _  ___| |_ ___   ____ _| |_ _  ___  _ __
  62. | | | / _ \_  / _` |/ __| __| \ \ / / _` | __| |/ _ \| '_ \
  63. | |/ /  __// / (_| | (__| |_| |\ V / (_| | |_| | (_) | | | |
  64. |___/ \___/___\__,_|\___|\__|_| \_/ \__,_|\__|_|\___/|_| |_|
  65. */
  66.  
  67. public OnFilterScriptExit()
  68. {
  69.     print("                _ ___                /^^. /^.  /^^._");
  70.     print("    _          _@)@) .            ,,/ '` ~ `'~~ ', `..");
  71.     print("  _/o._ _ _ _/~`.`...'~.        ./~~..,'`','',.,' '  ~:");
  72.     print(" / `,'.~,~.~  .   , . , ~|,   ,/ .,' , ,. .. ,,.   `,  ~._");
  73.     print("( ' _' _ '_` _  '  .    , `._/ .' ..' '  `  `   `..  `,   ._");
  74.     print(" ~V~ V~ V~ V~ ~. `   ' .  '    , ' .,.,''`.,.''`.,.``. ',   ._");
  75.     print("  _/. /. /. /._/, . ' ,   `_/~._ .' .,. ,, , _/~._ `. `. '.,  ._");
  76.     print(" < ~ ~ '~`'~'`, .,  .   `_: ::: ._ '      `_/ ::: ._ `.,' . ',  ._");
  77.     print("  . ' `_  '`_    _    ',/ _::_::_ . _    _/ _::_::_ .   `.,'.,`., .-,-,-,_,_,");
  78.     print("   `'~~ `'~~ `'~~ `'~~  .(_)(_)(_)/  `~~' .(_)(_)(_)/ ~'`._.._,._,'_;_;_;_;_;");
  79.     print(" _____________________________________________________________________________ ");
  80.     print("|                                                                             |");
  81.     print("|                              Colored Moneys                                 |");
  82.     print("|                             Created by Darky                                |");
  83.     print("|                             ________________                                |");
  84.     print("|                                UNLOADED !                                   |");
  85.     print("|                                                                             |");
  86.     print("|_____________________________________________________________________________|");
  87.     KillTimer(Check);
  88.     return 1;
  89. }
  90. ////////////////////////////////////////////////////////////////////////////////
  91. /*
  92. ______       _     _ _
  93. | ___ \     | |   | (_)
  94. | |_/ /_   _| |__ | |_  ___ ___
  95. |  __/| | | | '_ \| | |/ __/ __|
  96. | |   | |_| | |_) | | | (__\__ \
  97. \_|    \__,_|_.__/|_|_|\___|___/
  98. */
  99.  
  100. public OnPlayerConnect(playerid)
  101. {
  102.     Dollar = TextDrawCreate(499.000000, 78.000000, "~b~$");
  103.     TextDrawBackgroundColor(Dollar, 255);
  104.     TextDrawFont(Dollar, 3);
  105.     TextDrawLetterSize(Dollar, 0.539999, 2.000000);
  106.     TextDrawColor(Dollar, 945269247);
  107.     TextDrawSetOutline(Dollar, 0);
  108.     TextDrawSetProportional(Dollar, 1);
  109.     TextDrawSetShadow(Dollar, 1);
  110. ////////////////////////////////////////////////////////////////////////////////
  111.     Cash[playerid] = TextDrawCreate(511.500000, 78.000000, "00000000");
  112.     TextDrawBackgroundColor(Cash[playerid], 255);
  113.     TextDrawFont(Cash[playerid], 3);
  114.     TextDrawLetterSize(Cash[playerid], 0.577999, 2.000000);
  115.     TextDrawSetOutline(Cash[playerid], 1);
  116.     TextDrawSetProportional(Cash[playerid], 1);
  117.     TextDrawSetShadow(Cash[playerid], 1);
  118. ////////////////////////////////////////////////////////////////////////////////
  119.     TextDrawShowForPlayer(playerid, Dollar);
  120.     SetTimerEx("CheckMoney", 2000, true, "i", playerid);
  121.     return 1;
  122. }
  123. ////////////////////////////////////////////////////////////////////////////////
  124. public OnPlayerDisconnect(playerid)
  125. {
  126.     TextDrawHideForPlayer(playerid, Cash[playerid]);
  127.     TextDrawHideForPlayer(playerid, Dollar);
  128.     return 1;
  129. }
  130. ////////////////////////////////////////////////////////////////////////////////
  131. public OnPlayerUpdate(playerid)
  132. {
  133.     SetTimerEx("CheckMoney", 2000, true, "i", playerid);
  134.     return 1;
  135. }
  136. ////////////////////////////////////////////////////////////////////////////////
  137. forward CheckMoney(playerid);
  138. public CheckMoney(playerid)
  139. {
  140.     new string[128];
  141.     format(string, sizeof(string), "~w~%08d", GetPlayerMoney(playerid));
  142.     TextDrawSetString(Cash[playerid], string);
  143.     TextDrawShowForPlayer(playerid, Cash[playerid]);
  144.     return 1;
  145. }
  146. ////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement