OtaconEvil

[INC] Easy - New Bar Money (Secondary) By OTACON

Sep 26th, 2013
331
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple INCLUDE esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè INCLUDE en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  6.     *
  7.     * Codigo Creado Por OTACON
  8.     *
  9.     * CREDITOS:
  10.     *     OTACON: Realizacion y Idea de creacion del code.
  11.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  12.     *
  13.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *            Prohibido TOTALMENTE el Robo de Créditos o la
  16.     *              Publicación de este INCLUDE sin Mi Permiso.
  17. */
  18.  
  19. /*
  20.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  21.     *
  22.     * This simple INCLUDE is made especially for www.forum.sa-mp.com
  23.     * DO NOT Post the INCLUDE in Other SAMP forums and impersonating the creator of the CODE.
  24.     *
  25.     * Code Created By OTACON
  26.     *
  27.     * CREDITS:
  28.     *     OTACON: Idea Making and code creation.
  29.     *     YOUR: Modification freely respecting the above ;).
  30.     *
  31.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  32.     *
  33.     *                    FULLY spaces Theft Credit or
  34.     *             Publication of this INCLUDE without my permission.
  35. */
  36. /*
  37.     native ShowBarMoney(playerid);
  38.     native HideBarMoney(playerid);
  39.     native DestroyBarMoney(playerid);
  40.     native CreateBarMoney(playerid, color);
  41.     native UpdateBarMoney(playerid, money);
  42. */
  43. new PlayerText:NewBarMoneyTD[MAX_PLAYERS];
  44. #define ShowBarMoney(%0) PlayerTextDrawShow(%0, NewBarMoneyTD[%0])
  45. #define HideBarMoney(%0) PlayerTextDrawHide(%0, NewBarMoneyTD[%0])
  46. #define DestroyBarMoney(%0) PlayerTextDrawDestroy(%0, NewBarMoneyTD[%0])
  47. stock CreateBarMoney(playerid, color) {
  48.     NewBarMoneyTD[playerid] = CreatePlayerTextDraw(playerid,607.000000, 98.000000, "_");
  49.     PlayerTextDrawAlignment(playerid,NewBarMoneyTD[playerid], 3);
  50.     PlayerTextDrawBackgroundColor(playerid,NewBarMoneyTD[playerid], 255);
  51.     PlayerTextDrawFont(playerid,NewBarMoneyTD[playerid], 3);
  52.     PlayerTextDrawLetterSize(playerid,NewBarMoneyTD[playerid], 0.560000, 2.199999);
  53.     PlayerTextDrawColor(playerid,NewBarMoneyTD[playerid], color);
  54.     PlayerTextDrawSetOutline(playerid,NewBarMoneyTD[playerid], 1);
  55.     PlayerTextDrawSetShadow(playerid,NewBarMoneyTD[playerid], 1);
  56.     PlayerTextDrawSetProportional(playerid,NewBarMoneyTD[playerid], 1); return true; }
  57. stock UpdateBarMoney(playerid, money) {
  58.     if(GetPlayerMoney(playerid)<0) return false;
  59.     new data[50]; format(data,sizeof(data),"$%08d",money);
  60.     PlayerTextDrawSetString(playerid,NewBarMoneyTD[playerid],data); return true; }
  61. /*
  62.     #include <a_samp>
  63.     #include <zcmd>
  64.     #include <BarMoney>
  65.     #define CALLBACK:%0(%1) forward%0(%1); public%0(%1)
  66.     #define COLOR_NEW 0xFF00DAFF
  67.  
  68.     CALLBACK: OnFilterScriptInit() {
  69.         print("\n**************************************");
  70.         print("    Easy - New Bar Money (Secondary)    ");
  71.         print("           Date: 26/09/2013             ");
  72.         print("            Author: OTACON              ");
  73.         print("   --* Downloaded with Success!!. *--   ");
  74.         print("***************************************\n");
  75.         SendRconCommand("hostname Easy - New Bar Money (Secondary) ");
  76.         SendRconCommand("gamemodetext By OTACON");
  77.         return true;
  78.     }
  79.     CALLBACK: OnFilterScriptExit() {
  80.         print("\n**************************************");
  81.         print("    Easy - New Bar Money (Secondary)    ");
  82.         print("           Date: 26/09/2013             ");
  83.         print("            Author: OTACON              ");
  84.         print("     --* Loaded with Success!!. *--     ");
  85.         print("***************************************\n");
  86.         SendRconCommand("hostname Easy - New Bar Money (Secondary) ");
  87.         SendRconCommand("gamemodetext By OTACON");
  88.         return true;
  89.     }
  90.     CALLBACK: OnPlayerConnect(playerid) {
  91.         CreateBarMoney(playerid, COLOR_NEW);
  92.         return true;
  93.     }
  94.     CALLBACK: OnPlayerDisconnect(playerid, reason) {
  95.         HideBarMoney(playerid);
  96.         DestroyBarMoney(playerid);
  97.         return true;
  98.     }
  99.     CALLBACK: OnPlayerSpawn(playerid) {
  100.         ShowBarMoney(playerid);
  101.         return true;
  102.     }
  103.     CALLBACK: OnPlayerUpdate(playerid) {
  104.         UpdateBarMoney(playerid, GetPlayerMoney(playerid));
  105.         return true;
  106.     }
  107.     COMMAND:test1(playerid, params[]) {
  108.         GivePlayerMoney(playerid, (0+1000));
  109.         return true;
  110.     }
  111.     COMMAND:test2(playerid, params[]) {
  112.         GivePlayerMoney(playerid, (0-1000));
  113.         return true;
  114.     }
  115. */
  116. /*
  117.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  118.     *
  119.     * Estè Simple INCLUDE esta hecho especialmente para www.forum.sa-mp.com
  120.     * NO Publicar estè INCLUDE en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  121.     *
  122.     * Codigo Creado Por OTACON
  123.     *
  124.     * CREDITOS:
  125.     *     OTACON: Realizacion y Idea de creacion del code.
  126.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  127.     *
  128.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  129.     *
  130.     *            Prohibido TOTALMENTE el Robo de Créditos o la
  131.     *              Publicación de este INCLUDE sin Mi Permiso.
  132. */
  133.  
  134. /*
  135.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  136.     *
  137.     * This simple INCLUDE is made especially for www.forum.sa-mp.com
  138.     * DO NOT Post the INCLUDE in Other SAMP forums and impersonating the creator of the CODE.
  139.     *
  140.     * Code Created By OTACON
  141.     *
  142.     * CREDITS:
  143.     *     OTACON: Idea Making and code creation.
  144.     *     YOUR: Modification freely respecting the above ;).
  145.     *
  146.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  147.     *
  148.     *                    FULLY spaces Theft Credit or
  149.     *             Publication of this INCLUDE without my permission.
  150. */
RAW Paste Data