OtaconEvil

[FS] San Valentin (textdraw) By OTACON

Feb 14th, 2014
435
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 FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè FILTERSCRIPT 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 FILTERSCRIPT sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
  23.     *
  24.     * Code Created By OTACON
  25.     *
  26.     * CREDITS:
  27.     *     OTACON: Idea Making and code creation.
  28.     *     YOUR: Modification freely respecting the above ;).
  29.     *
  30.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  31.     *
  32.     *                        FULLY spaces Theft Credit or
  33.     *                 Publication of this FILTERSCRIPT without my permission.
  34. */
  35. #include <a_samp>
  36. #include <sscanf2> //http://forum.sa-mp.com/showthread.php?t=120356
  37. #include <zcmd> //http://forum.sa-mp.com/showthread.php?t=91354
  38. new Text:LoveTextdraw[15],
  39. bool:LoveTextdrawActive[MAX_PLAYERS];
  40.  
  41. COMMAND:love(playerid, params[]){
  42.     new data[100];
  43.     if(sscanf(params, "r",params[0])) return SendClientMessage(playerid, -1, "INFO: type the command /love (playerid)");
  44.     if(params[0]==INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "INFO: player entered is not correct id!.");
  45.     if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, -1, "INFO: player entered not connected!.");
  46.     if(LoveTextdrawActive[params[0]]==true) SendClientMessage(playerid, -1, "INFO: the player is in the process entered a greeting!.");
  47.     LoveTextdrawActive[params[0]]=true;
  48.     SelectTextDraw(params[0],1936487167);
  49.     for(new index=0;index<15;index++){TextDrawShowForPlayer(params[0],LoveTextdraw[index]);}
  50.     format(data,sizeof(data),"INFO: you gave him a greeting valentines to id:%d.",params[0]);
  51.     SendClientMessage(playerid,-1,data);
  52.     format(data,sizeof(data),"INFO: the id:%d has given you a valentine greeting.",params[0]);
  53.     SendClientMessage(params[0],-1,data);
  54.     return true;
  55. }
  56. public OnPlayerClickTextDraw(playerid, Text:clickedid){
  57.     if(Text:INVALID_TEXT_DRAW==clickedid&&LoveTextdrawActive[playerid]==true){
  58.         SelectTextDraw(playerid,1936487167);}
  59.     if(clickedid==LoveTextdraw[9]&&LoveTextdrawActive[playerid]==true){
  60.     PlayAudioStreamForPlayer(playerid,"http://translate.google.com/translate_tts?ie=UTF-8&q=I%20love%20you!&tl=en&total=1&idx=0&textlen=11");
  61.     for(new msg=0; msg<32; msg++){SendClientMessage(playerid, -1, " ");}
  62.     LoveTextdrawActive[playerid]=false;
  63.     CancelSelectTextDraw(playerid);
  64.     for(new index=0;index<15;index++){TextDrawHideForPlayer(playerid,LoveTextdraw[index]);}
  65.     }return true;
  66. }
  67. public OnFilterScriptInit(){
  68.     LoveTextdraw[0] = TextDrawCreate(501.000000, 283.000000, "_");
  69.     TextDrawBackgroundColor(LoveTextdraw[0], 0);
  70.     TextDrawFont(LoveTextdraw[0], 5);
  71.     TextDrawLetterSize(LoveTextdraw[0], 1.900000, 10.000000);
  72.     TextDrawColor(LoveTextdraw[0], -1);
  73.     TextDrawSetOutline(LoveTextdraw[0], 0);
  74.     TextDrawSetProportional(LoveTextdraw[0], 1);
  75.     TextDrawSetShadow(LoveTextdraw[0], 1);
  76.     TextDrawUseBox(LoveTextdraw[0], 1);
  77.     TextDrawBoxColor(LoveTextdraw[0], 255);
  78.     TextDrawTextSize(LoveTextdraw[0], 192.000000, 161.000000);
  79.     TextDrawSetSelectable(LoveTextdraw[0], 0);
  80.     TextDrawSetPreviewModel(LoveTextdraw[0], 195);
  81.     TextDrawSetPreviewRot(LoveTextdraw[0], 0.000000, 0.000000, -50.000000, 1.000000);
  82.     TextDrawSetSelectable(LoveTextdraw[0], 0);
  83.  
  84.     LoveTextdraw[1] = TextDrawCreate(351.000000, 283.000000, "_");
  85.     TextDrawBackgroundColor(LoveTextdraw[1], 0);
  86.     TextDrawFont(LoveTextdraw[1], 5);
  87.     TextDrawLetterSize(LoveTextdraw[1], 1.900000, 10.000000);
  88.     TextDrawColor(LoveTextdraw[1], -1);
  89.     TextDrawSetOutline(LoveTextdraw[1], 0);
  90.     TextDrawSetProportional(LoveTextdraw[1], 1);
  91.     TextDrawSetShadow(LoveTextdraw[1], 1);
  92.     TextDrawUseBox(LoveTextdraw[1], 1);
  93.     TextDrawBoxColor(LoveTextdraw[1], 255);
  94.     TextDrawTextSize(LoveTextdraw[1], 192.000000, 161.000000);
  95.     TextDrawSetSelectable(LoveTextdraw[1], 0);
  96.     TextDrawSetPreviewModel(LoveTextdraw[1], 74);
  97.     TextDrawSetPreviewRot(LoveTextdraw[1], 0.000000, 0.000000, 50.000000, 1.000000);
  98.     TextDrawSetSelectable(LoveTextdraw[1], 0);
  99.  
  100.     LoveTextdraw[2] = TextDrawCreate(394.000000, 350.000000, "_");
  101.     TextDrawBackgroundColor(LoveTextdraw[2], 0);
  102.     TextDrawFont(LoveTextdraw[2], 5);
  103.     TextDrawLetterSize(LoveTextdraw[2], 1.900000, 10.000000);
  104.     TextDrawColor(LoveTextdraw[2], -1);
  105.     TextDrawSetOutline(LoveTextdraw[2], 0);
  106.     TextDrawSetProportional(LoveTextdraw[2], 1);
  107.     TextDrawSetShadow(LoveTextdraw[2], 1);
  108.     TextDrawUseBox(LoveTextdraw[2], 1);
  109.     TextDrawBoxColor(LoveTextdraw[2], 255);
  110.     TextDrawTextSize(LoveTextdraw[2], 82.000000, 51.000000);
  111.     TextDrawSetSelectable(LoveTextdraw[2], 0);
  112.     TextDrawSetPreviewModel(LoveTextdraw[2], 325);
  113.     TextDrawSetPreviewRot(LoveTextdraw[2], 0.000000, -80.000000, -70.000000, 1.000000);
  114.     TextDrawSetSelectable(LoveTextdraw[2], 0);
  115.  
  116.     LoveTextdraw[3] = TextDrawCreate(611.000000, 291.000000, "_");
  117.     TextDrawBackgroundColor(LoveTextdraw[3], 0);
  118.     TextDrawFont(LoveTextdraw[3], 5);
  119.     TextDrawLetterSize(LoveTextdraw[3], 1.900000, 10.000000);
  120.     TextDrawColor(LoveTextdraw[3], -1);
  121.     TextDrawSetOutline(LoveTextdraw[3], 0);
  122.     TextDrawSetProportional(LoveTextdraw[3], 1);
  123.     TextDrawSetShadow(LoveTextdraw[3], 1);
  124.     TextDrawUseBox(LoveTextdraw[3], 1);
  125.     TextDrawBoxColor(LoveTextdraw[3], 255);
  126.     TextDrawTextSize(LoveTextdraw[3], 22.000000, 19.000000);
  127.     TextDrawSetSelectable(LoveTextdraw[3], 0);
  128.     TextDrawSetPreviewModel(LoveTextdraw[3], 1240);
  129.     TextDrawSetPreviewRot(LoveTextdraw[3], 0.000000, 0.000000, 0.000000, 1.000000);
  130.     TextDrawSetSelectable(LoveTextdraw[3], 0);
  131.  
  132.     LoveTextdraw[4] = TextDrawCreate(593.000000, 276.000000, "_");
  133.     TextDrawBackgroundColor(LoveTextdraw[4], 0);
  134.     TextDrawFont(LoveTextdraw[4], 5);
  135.     TextDrawLetterSize(LoveTextdraw[4], 1.900000, 10.000000);
  136.     TextDrawColor(LoveTextdraw[4], -1);
  137.     TextDrawSetOutline(LoveTextdraw[4], 0);
  138.     TextDrawSetProportional(LoveTextdraw[4], 1);
  139.     TextDrawSetShadow(LoveTextdraw[4], 1);
  140.     TextDrawUseBox(LoveTextdraw[4], 1);
  141.     TextDrawBoxColor(LoveTextdraw[4], 255);
  142.     TextDrawTextSize(LoveTextdraw[4], 26.000000, 22.000000);
  143.     TextDrawSetSelectable(LoveTextdraw[4], 0);
  144.     TextDrawSetPreviewModel(LoveTextdraw[4], 1240);
  145.     TextDrawSetPreviewRot(LoveTextdraw[4], 0.000000, 0.000000, 0.000000, 1.000000);
  146.     TextDrawSetSelectable(LoveTextdraw[4], 0);
  147.  
  148.     LoveTextdraw[5] = TextDrawCreate(577.000000, 286.000000, "_");
  149.     TextDrawBackgroundColor(LoveTextdraw[5], 0);
  150.     TextDrawFont(LoveTextdraw[5], 5);
  151.     TextDrawLetterSize(LoveTextdraw[5], 1.900000, 10.000000);
  152.     TextDrawColor(LoveTextdraw[5], -1);
  153.     TextDrawSetOutline(LoveTextdraw[5], 0);
  154.     TextDrawSetProportional(LoveTextdraw[5], 1);
  155.     TextDrawSetShadow(LoveTextdraw[5], 1);
  156.     TextDrawUseBox(LoveTextdraw[5], 1);
  157.     TextDrawBoxColor(LoveTextdraw[5], 255);
  158.     TextDrawTextSize(LoveTextdraw[5], 22.000000, 17.000000);
  159.     TextDrawSetSelectable(LoveTextdraw[5], 0);
  160.     TextDrawSetPreviewModel(LoveTextdraw[5], 1240);
  161.     TextDrawSetPreviewRot(LoveTextdraw[5], 0.000000, 0.000000, 0.000000, 1.000000);
  162.     TextDrawSetSelectable(LoveTextdraw[5], 0);
  163.  
  164.     LoveTextdraw[6] = TextDrawCreate(460.000000, 291.000000, "_");
  165.     TextDrawBackgroundColor(LoveTextdraw[6], 0);
  166.     TextDrawFont(LoveTextdraw[6], 5);
  167.     TextDrawLetterSize(LoveTextdraw[6], 1.900000, 10.000000);
  168.     TextDrawColor(LoveTextdraw[6], -1);
  169.     TextDrawSetOutline(LoveTextdraw[6], 0);
  170.     TextDrawSetProportional(LoveTextdraw[6], 1);
  171.     TextDrawSetShadow(LoveTextdraw[6], 1);
  172.     TextDrawUseBox(LoveTextdraw[6], 1);
  173.     TextDrawBoxColor(LoveTextdraw[6], 255);
  174.     TextDrawTextSize(LoveTextdraw[6], 22.000000, 19.000000);
  175.     TextDrawSetSelectable(LoveTextdraw[6], 0);
  176.     TextDrawSetPreviewModel(LoveTextdraw[6], 1240);
  177.     TextDrawSetPreviewRot(LoveTextdraw[6], 0.000000, 0.000000, 0.000000, 1.000000);
  178.     TextDrawSetSelectable(LoveTextdraw[6], 0);
  179.  
  180.     LoveTextdraw[7] = TextDrawCreate(419.000000, 301.000000, "_");
  181.     TextDrawBackgroundColor(LoveTextdraw[7], 0);
  182.     TextDrawFont(LoveTextdraw[7], 5);
  183.     TextDrawLetterSize(LoveTextdraw[7], 1.900000, 10.000000);
  184.     TextDrawColor(LoveTextdraw[7], -1);
  185.     TextDrawSetOutline(LoveTextdraw[7], 0);
  186.     TextDrawSetProportional(LoveTextdraw[7], 1);
  187.     TextDrawSetShadow(LoveTextdraw[7], 1);
  188.     TextDrawUseBox(LoveTextdraw[7], 1);
  189.     TextDrawBoxColor(LoveTextdraw[7], 255);
  190.     TextDrawTextSize(LoveTextdraw[7], 22.000000, 19.000000);
  191.     TextDrawSetSelectable(LoveTextdraw[7], 0);
  192.     TextDrawSetPreviewModel(LoveTextdraw[7], 1240);
  193.     TextDrawSetPreviewRot(LoveTextdraw[7], 0.000000, 0.000000, 0.000000, 1.000000);
  194.     TextDrawSetSelectable(LoveTextdraw[7], 0);
  195.  
  196.     LoveTextdraw[8] = TextDrawCreate(431.000000, 277.000000, "_");
  197.     TextDrawBackgroundColor(LoveTextdraw[8], 0);
  198.     TextDrawFont(LoveTextdraw[8], 5);
  199.     TextDrawLetterSize(LoveTextdraw[8], 1.900000, 10.000000);
  200.     TextDrawColor(LoveTextdraw[8], -1);
  201.     TextDrawSetOutline(LoveTextdraw[8], 0);
  202.     TextDrawSetProportional(LoveTextdraw[8], 1);
  203.     TextDrawSetShadow(LoveTextdraw[8], 1);
  204.     TextDrawUseBox(LoveTextdraw[8], 1);
  205.     TextDrawBoxColor(LoveTextdraw[8], 255);
  206.     TextDrawTextSize(LoveTextdraw[8], 31.000000, 27.000000);
  207.     TextDrawSetSelectable(LoveTextdraw[8], 0);
  208.     TextDrawSetPreviewModel(LoveTextdraw[8], 1240);
  209.     TextDrawSetPreviewRot(LoveTextdraw[8], 0.000000, 0.000000, 0.000000, 1.000000);
  210.     TextDrawSetSelectable(LoveTextdraw[8], 0);
  211.  
  212.     LoveTextdraw[9] = TextDrawCreate(464.000000, 291.000000, "_");
  213.     TextDrawBackgroundColor(LoveTextdraw[9], 0);
  214.     TextDrawFont(LoveTextdraw[9], 5);
  215.     TextDrawLetterSize(LoveTextdraw[9], 1.900000, 10.000000);
  216.     TextDrawColor(LoveTextdraw[9], -1);
  217.     TextDrawSetOutline(LoveTextdraw[9], 0);
  218.     TextDrawSetProportional(LoveTextdraw[9], 1);
  219.     TextDrawSetShadow(LoveTextdraw[9], 1);
  220.     TextDrawUseBox(LoveTextdraw[9], 1);
  221.     TextDrawBoxColor(LoveTextdraw[9], 255);
  222.     TextDrawTextSize(LoveTextdraw[9], 129.000000, 118.000000);
  223.     TextDrawSetSelectable(LoveTextdraw[9], 1);
  224.     TextDrawSetPreviewModel(LoveTextdraw[9], 1240);
  225.     TextDrawSetPreviewRot(LoveTextdraw[9], 0.000000, 0.000000, 0.000000, 1.000000);
  226.     TextDrawSetSelectable(LoveTextdraw[9], 1);
  227.  
  228.     LoveTextdraw[10] = TextDrawCreate(529.000000, 342.000000, "I love you!");
  229.     TextDrawAlignment(LoveTextdraw[10], 2);
  230.     TextDrawBackgroundColor(LoveTextdraw[10], 255);
  231.     TextDrawFont(LoveTextdraw[10], 2);
  232.     TextDrawLetterSize(LoveTextdraw[10], 0.250000, 1.599999);
  233.     TextDrawColor(LoveTextdraw[10], -1);
  234.     TextDrawSetOutline(LoveTextdraw[10], 0);
  235.     TextDrawSetProportional(LoveTextdraw[10], 1);
  236.     TextDrawSetShadow(LoveTextdraw[10], 1);
  237.     TextDrawSetSelectable(LoveTextdraw[10], 0);
  238.  
  239.     LoveTextdraw[11] = TextDrawCreate(483.000000, 378.000000, "_");
  240.     TextDrawBackgroundColor(LoveTextdraw[11], 0);
  241.     TextDrawFont(LoveTextdraw[11], 5);
  242.     TextDrawLetterSize(LoveTextdraw[11], 1.500000, 3.000000);
  243.     TextDrawColor(LoveTextdraw[11], -1);
  244.     TextDrawSetOutline(LoveTextdraw[11], 0);
  245.     TextDrawSetProportional(LoveTextdraw[11], 1);
  246.     TextDrawSetShadow(LoveTextdraw[11], 1);
  247.     TextDrawUseBox(LoveTextdraw[11], 1);
  248.     TextDrawBoxColor(LoveTextdraw[11], 255);
  249.     TextDrawTextSize(LoveTextdraw[11], 34.000000, 27.000000);
  250.     TextDrawSetSelectable(LoveTextdraw[11], 0);
  251.     TextDrawSetPreviewModel(LoveTextdraw[11], 1240);
  252.     TextDrawSetPreviewRot(LoveTextdraw[11], 0.000000, 0.000000, 0.000000, 1.000000);
  253.     TextDrawSetSelectable(LoveTextdraw[11], 0);
  254.  
  255.     LoveTextdraw[12] = TextDrawCreate(540.000000, 384.000000, "_");
  256.     TextDrawBackgroundColor(LoveTextdraw[12], 0);
  257.     TextDrawFont(LoveTextdraw[12], 5);
  258.     TextDrawLetterSize(LoveTextdraw[12], 1.500000, 3.000000);
  259.     TextDrawColor(LoveTextdraw[12], -1);
  260.     TextDrawSetOutline(LoveTextdraw[12], 0);
  261.     TextDrawSetProportional(LoveTextdraw[12], 1);
  262.     TextDrawSetShadow(LoveTextdraw[12], 1);
  263.     TextDrawUseBox(LoveTextdraw[12], 1);
  264.     TextDrawBoxColor(LoveTextdraw[12], 255);
  265.     TextDrawTextSize(LoveTextdraw[12], 25.000000, 23.000000);
  266.     TextDrawSetSelectable(LoveTextdraw[12], 0);
  267.     TextDrawSetPreviewModel(LoveTextdraw[12], 1240);
  268.     TextDrawSetPreviewRot(LoveTextdraw[12], 0.000000, 0.000000, 0.000000, 1.000000);
  269.     TextDrawSetSelectable(LoveTextdraw[12], 0);
  270.  
  271.     LoveTextdraw[13] = TextDrawCreate(516.000000, 391.000000, "_");
  272.     TextDrawBackgroundColor(LoveTextdraw[13], 0);
  273.     TextDrawFont(LoveTextdraw[13], 5);
  274.     TextDrawLetterSize(LoveTextdraw[13], 1.500000, 3.000000);
  275.     TextDrawColor(LoveTextdraw[13], -1);
  276.     TextDrawSetOutline(LoveTextdraw[13], 0);
  277.     TextDrawSetProportional(LoveTextdraw[13], 1);
  278.     TextDrawSetShadow(LoveTextdraw[13], 1);
  279.     TextDrawUseBox(LoveTextdraw[13], 1);
  280.     TextDrawBoxColor(LoveTextdraw[13], 255);
  281.     TextDrawTextSize(LoveTextdraw[13], 25.000000, 23.000000);
  282.     TextDrawSetSelectable(LoveTextdraw[13], 0);
  283.     TextDrawSetPreviewModel(LoveTextdraw[13], 1240);
  284.     TextDrawSetPreviewRot(LoveTextdraw[13], 0.000000, 0.000000, 0.000000, 1.000000);
  285.     TextDrawSetSelectable(LoveTextdraw[13], 0);
  286.  
  287.     LoveTextdraw[14] = TextDrawCreate(528.000000, 308.000000, "Happy day for 'valentines'!");
  288.     TextDrawAlignment(LoveTextdraw[14], 2);
  289.     TextDrawBackgroundColor(LoveTextdraw[14], 255);
  290.     TextDrawFont(LoveTextdraw[14], 2);
  291.     TextDrawLetterSize(LoveTextdraw[14], 0.129999, 0.999999);
  292.     TextDrawColor(LoveTextdraw[14], -1);
  293.     TextDrawSetOutline(LoveTextdraw[14], 0);
  294.     TextDrawSetProportional(LoveTextdraw[14], 1);
  295.     TextDrawSetShadow(LoveTextdraw[14], 1);
  296.     TextDrawSetSelectable(LoveTextdraw[14], 0);
  297.     return true;
  298. }
RAW Paste Data