OtaconEvil

[FS] Pantalla Login/Creditos estilo 'Iron Man 3' - By OTACON

Sep 26th, 2013
564
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. #define CALLBACK:%0(%1) forward%0(%1); public%0(%1)
  37.  
  38. #define MAX_CREDITS (24)
  39. #define CAM_CREDITS (11)
  40. #define TEXT_CREDITOS (4)
  41. #define TIMER_CREDITS (1*1000)
  42. #define URL_MUSIC "http://www.avmine.com/Music/Filmmusic2013/Canudigit.mp3"
  43.  
  44. static Text:CreditsTD[MAX_PLAYERS][MAX_CREDITS],
  45. KillCreditsTD[MAX_PLAYERS][1],
  46. bool:ViewingCreditsTD[MAX_PLAYERS],
  47. Float:CamCreditsTD[CAM_CREDITS][6] = {
  48. { 2137.3501, 1286.0500, 36.1300, 2138.3501, 1286.0400, 35.9900 } ,
  49. { 2342.3701, 2158.5100, 11.8300, 2341.6899, 2157.7700, 12.0900 } ,
  50. { 2134.0000, 1910.6100, 9.9100, 2132.9900, 1910.6100, 10.2400 } ,
  51. { 2041.3101, 1591.7100, 16.8400, 2040.7200, 1590.9000, 16.8800 } ,
  52. { 2092.6201, 1161.8199, 22.2300, 2093.5100, 1161.3600, 22.1500 } ,
  53. { 2056.4500, 986.9600, 15.0600, 2055.5701, 987.4500, 15.2200 } ,
  54. { 574.4100, -1865.1200, 14.2800, 573.5300, -1865.6100, 14.1800 },
  55. { 1514.4100, -1718.1000, 22.0100, 1515.1600, -1717.4301, 22.1100 } ,
  56. { 1514.4399, -1711.8199, 16.8100, 1513.9100, -1712.6801, 17.0600 } ,
  57. { 1816.4600, -1699.2700, 13.9000, 1817.2000, -1698.6000, 14.1700 } ,
  58. { 2318.1299, -1659.2200, 17.6100, 2319.1299, -1659.1801, 17.4800 } },
  59. ColoresRandom[3][1] = {
  60. 0xE0810033/*orange*/,0x26810033/*green*/, 0xFF000033/*red*/ },
  61. TextoCreditsTD[TEXT_CREDITOS][100] = {
  62. "~w~LEAD PROGRAMMER: ~n~~y~OTACON",
  63. "~w~LEAD DESIGNER: ~n~~y~OTACON",
  64. "~w~PROPRIETARY: ~n~~y~OTACON",
  65. "~w~ORIGINALITY: ~n~~y~OTACON" };
  66.  
  67. CALLBACK: OnFilterScriptInit() {
  68.     print("\n**************************************");
  69.     print("      Screen Login/Credits style        ");
  70.     print("           'Iron Man Three'             ");
  71.     print("           Date: 24/09/2013             ");
  72.     print("            Author: OTACON              ");
  73.     print("   --* Downloaded with Success!!. *--   ");
  74.     print("***************************************\n");
  75.     SendRconCommand("hostname Screen Login/Credits style 'Iron Man Three'");
  76.     SendRconCommand("gamemodetext By OTACON");
  77.     return true;
  78. }
  79. CALLBACK: OnFilterScriptExit() {
  80.     print("\n**************************************");
  81.     print("      Screen Login/Credits style        ");
  82.     print("           'Iron Man Three'             ");
  83.     print("           Date: 24/09/2013             ");
  84.     print("            Author: OTACON              ");
  85.     print("     --* Loaded with Success!!. *--     ");
  86.     print("***************************************\n");
  87.     SendRconCommand("hostname Screen Login/Credits style 'Iron Man Three'");
  88.     SendRconCommand("gamemodetext By OTACON");
  89.     return true;
  90. }
  91. CALLBACK: LoadCreditsTD(playerid) {
  92.     new randomcam=random(CAM_CREDITS);
  93.     SetPlayerCameraPos(playerid, CamCreditsTD[randomcam][0], CamCreditsTD[randomcam][1], CamCreditsTD[randomcam][2]);
  94.     SetPlayerCameraLookAt(playerid, CamCreditsTD[randomcam][3], CamCreditsTD[randomcam][4], CamCreditsTD[randomcam][5]);
  95.     for(new index=6; index<9; index++) \
  96.         TextDrawHideForPlayer(playerid,CreditsTD[playerid][index]);
  97.     TextDrawBoxColor(CreditsTD[playerid][6], ColoresRandom[random(3)][0]);
  98.     TextDrawBoxColor(CreditsTD[playerid][7], ColoresRandom[random(3)][0]);
  99.     TextDrawBoxColor(CreditsTD[playerid][8], ColoresRandom[random(3)][0]);
  100.     for(new index=6; index<9; index++) \
  101.         TextDrawShowForPlayer(playerid,CreditsTD[playerid][index]);
  102.     for(new index=9; index<13; index++) \
  103.         TextDrawHideForPlayer(playerid,CreditsTD[playerid][index]);
  104.     new textorandom=random(TEXT_CREDITOS);
  105.     new randomtexto=random(MAX_CREDITS);
  106.     switch(randomtexto) {
  107.         case 9..12: TextDrawSetString(CreditsTD[playerid][randomtexto], TextoCreditsTD[textorandom]), \
  108.             TextDrawShowForPlayer(playerid,CreditsTD[playerid][randomtexto]);
  109.     }
  110. }
  111. CALLBACK: OnPlayerConnect(playerid) {
  112.     if(ViewingCreditsTD[playerid]==false) {
  113.     //background borders
  114.     CreditsTD[playerid][6] = TextDrawCreate(-5.000000, 20.000000, "_");
  115.     TextDrawLetterSize(CreditsTD[playerid][6], 0.529999, 45.200000);
  116.     TextDrawBoxColor(CreditsTD[playerid][6], ColoresRandom[0][0]);
  117.     TextDrawTextSize(CreditsTD[playerid][6], 204.000000, 10.000000);
  118.     CreditsTD[playerid][7] = TextDrawCreate(194.000000, 20.000000, "_");
  119.     TextDrawLetterSize(CreditsTD[playerid][7], 0.450000, 45.200000);
  120.     TextDrawBoxColor(CreditsTD[playerid][7], ColoresRandom[1][0]);
  121.     TextDrawTextSize(CreditsTD[playerid][7], 427.000000, 10.000000);
  122.     CreditsTD[playerid][8] = TextDrawCreate(416.000000, 20.000000, "_");
  123.     TextDrawLetterSize(CreditsTD[playerid][8], 0.529999, 45.200000);
  124.     TextDrawBoxColor(CreditsTD[playerid][8], ColoresRandom[2][0]);
  125.     TextDrawTextSize(CreditsTD[playerid][8], 641.000000, 10.000000);
  126.     for(new index=6; index<9; index++) {
  127.         TextDrawBackgroundColor(CreditsTD[playerid][index], 255);
  128.         TextDrawFont(CreditsTD[playerid][index], 1);
  129.         TextDrawColor(CreditsTD[playerid][index], -1);
  130.         TextDrawSetOutline(CreditsTD[playerid][index], 0);
  131.         TextDrawSetProportional(CreditsTD[playerid][index], 1);
  132.         TextDrawSetShadow(CreditsTD[playerid][index], 1);
  133.         TextDrawUseBox(CreditsTD[playerid][index], 1); }
  134.     //screen borders
  135.     CreditsTD[playerid][0] = TextDrawCreate(-35.000000, 2.000000, "_");
  136.     TextDrawLetterSize(CreditsTD[playerid][0], 0.500000, 1.300000);
  137.     TextDrawTextSize(CreditsTD[playerid][0], 670.000000, 10.000000);
  138.     CreditsTD[playerid][1] = TextDrawCreate(-35.000000, 433.000000, "_");
  139.     TextDrawLetterSize(CreditsTD[playerid][1], 0.500000, 1.300000);
  140.     TextDrawTextSize(CreditsTD[playerid][1], 670.000000, 10.000000);
  141.     CreditsTD[playerid][2] = TextDrawCreate(-5.000000, 20.000000, "_");
  142.     TextDrawLetterSize(CreditsTD[playerid][2], 0.529999, 45.200000);
  143.     TextDrawTextSize(CreditsTD[playerid][2], 24.000000, 10.000000);
  144.     CreditsTD[playerid][3] = TextDrawCreate(621.000000, 20.000000, "_");
  145.     TextDrawLetterSize(CreditsTD[playerid][3], 0.529999, 45.200000);
  146.     TextDrawTextSize(CreditsTD[playerid][3], 674.000000, 10.000000);
  147.     CreditsTD[playerid][4] = TextDrawCreate(194.000000, 20.000000, "_");
  148.     TextDrawLetterSize(CreditsTD[playerid][4], 0.450000, 45.200000);
  149.     TextDrawTextSize(CreditsTD[playerid][4], 218.000000, 10.000000);
  150.     CreditsTD[playerid][5] = TextDrawCreate(416.000000, 20.000000, "_");
  151.     TextDrawLetterSize(CreditsTD[playerid][5], 0.529999, 45.200000);
  152.     TextDrawTextSize(CreditsTD[playerid][5], 440.000000, 10.000000);
  153.     for(new index=0; index<6; index++) {
  154.         TextDrawBackgroundColor(CreditsTD[playerid][index], 255);
  155.         TextDrawFont(CreditsTD[playerid][index], 1);
  156.         TextDrawColor(CreditsTD[playerid][index], -1);
  157.         TextDrawSetOutline(CreditsTD[playerid][index], 0);
  158.         TextDrawSetProportional(CreditsTD[playerid][index], 1);
  159.         TextDrawSetShadow(CreditsTD[playerid][index], 1);
  160.         TextDrawUseBox(CreditsTD[playerid][index], 1);
  161.         TextDrawBoxColor(CreditsTD[playerid][index], 255); }
  162.     //text's
  163.     CreditsTD[playerid][9] = TextDrawCreate(429.000000, 336.000000, "_"); //Text 1
  164.     CreditsTD[playerid][10] = TextDrawCreate(429.000000, 19.000000, "_"); //Text 2
  165.     CreditsTD[playerid][11] = TextDrawCreate(209.000000, 99.000000, "_"); //Text 3
  166.     CreditsTD[playerid][12] = TextDrawCreate(207.000000, 253.000000, "_"); //Text 4
  167.     for(new index=9; index<13; index++) {
  168.         TextDrawAlignment(CreditsTD[playerid][index], 2);
  169.         TextDrawBackgroundColor(CreditsTD[playerid][index], 255);
  170.         TextDrawFont(CreditsTD[playerid][index], 1);
  171.         TextDrawLetterSize(CreditsTD[playerid][index], 1.050000, 4.599999);
  172.         TextDrawColor(CreditsTD[playerid][index], -1);
  173.         TextDrawSetOutline(CreditsTD[playerid][index], 1);
  174.         TextDrawSetProportional(CreditsTD[playerid][index], 1); }
  175.     //stars screen
  176.     CreditsTD[playerid][13] = TextDrawCreate(36.000000, 403.000000, "_");
  177.     CreditsTD[playerid][14] = TextDrawCreate(37.000000, 372.000000, "_");
  178.     CreditsTD[playerid][15] = TextDrawCreate(62.000000, 392.000000, "_");
  179.     CreditsTD[playerid][16] = TextDrawCreate(591.000000, 18.000000, "_");
  180.     CreditsTD[playerid][17] = TextDrawCreate(571.000000, 28.000000, "_");
  181.     CreditsTD[playerid][18] = TextDrawCreate(591.000000, 40.000000, "_");
  182.     CreditsTD[playerid][19] = TextDrawCreate(562.000000, 373.000000, "_");
  183.     CreditsTD[playerid][20] = TextDrawCreate(573.000000, 353.000000, "_");
  184.     CreditsTD[playerid][21] = TextDrawCreate(534.000000, 400.000000, "_");
  185.     CreditsTD[playerid][22] = TextDrawCreate(555.000000, 374.000000, "_");
  186.     TextDrawLetterSize(CreditsTD[playerid][13], 0.610000, 2.099999);
  187.     TextDrawLetterSize(CreditsTD[playerid][14], 0.910000, 3.099999);
  188.     TextDrawLetterSize(CreditsTD[playerid][15], 0.730000, 2.800000);
  189.     TextDrawLetterSize(CreditsTD[playerid][16], 0.730000, 2.800000);
  190.     TextDrawLetterSize(CreditsTD[playerid][17], 0.550000, 2.000000);
  191.     TextDrawLetterSize(CreditsTD[playerid][18], 0.550000, 2.000000);
  192.     TextDrawLetterSize(CreditsTD[playerid][19], 1.730000, 6.700000);
  193.     TextDrawLetterSize(CreditsTD[playerid][20], 0.920000, 2.700000);
  194.     TextDrawLetterSize(CreditsTD[playerid][21], 0.920000, 2.700000);
  195.     TextDrawLetterSize(CreditsTD[playerid][22], 0.580000, 2.100001);
  196.     for(new index=13; index<23; index++) {
  197.         TextDrawBackgroundColor(CreditsTD[playerid][index], 255);
  198.         TextDrawFont(CreditsTD[playerid][index], 2);
  199.         TextDrawColor(CreditsTD[playerid][index], -1);
  200.         TextDrawSetOutline(CreditsTD[playerid][index], 1);
  201.         TextDrawSetProportional(CreditsTD[playerid][index], 1);
  202.         TextDrawSetString(CreditsTD[playerid][index], "~y~]"); }
  203.     //text credits
  204.     CreditsTD[playerid][23] = TextDrawCreate(318.000000, 419.000000, "~w~Screen Login/Credits style ~y~'Iron Man Three' ~w~- ~y~By OTACON");
  205.     TextDrawAlignment(CreditsTD[playerid][23], 2);
  206.     TextDrawBackgroundColor(CreditsTD[playerid][23], 255);
  207.     TextDrawFont(CreditsTD[playerid][23], 1);
  208.     TextDrawLetterSize(CreditsTD[playerid][23], 0.260000, 2.299999);
  209.     TextDrawColor(CreditsTD[playerid][23], -1);
  210.     TextDrawSetOutline(CreditsTD[playerid][23], 1);
  211.     TextDrawSetProportional(CreditsTD[playerid][23], 1);
  212.     } return true;
  213. }
  214. CALLBACK: OnPlayerDisconnect(playerid, reason) {
  215.     if(ViewingCreditsTD[playerid]==true) {
  216.         for(new index=0; index<MAX_CREDITS; index++) \
  217.             TextDrawHideForPlayer(playerid,CreditsTD[playerid][index]), \
  218.                TextDrawDestroy(CreditsTD[playerid][index]);
  219.         KillTimer(KillCreditsTD[playerid][0]);
  220.         ViewingCreditsTD[playerid]=false;
  221.     } return true;
  222. }
  223. CALLBACK: OnPlayerRequestClass(playerid, classid) {
  224.     if(ViewingCreditsTD[playerid]==false) {
  225.         StopAudioStreamForPlayer(playerid);
  226.         PlayAudioStreamForPlayer(playerid, URL_MUSIC);
  227.         for(new msg=0; msg<100; msg++) \
  228.             SendClientMessage(playerid, -1, " ");
  229.         TogglePlayerSpectating(playerid, true);
  230.         SetPlayerCameraPos(playerid, CamCreditsTD[0][0], CamCreditsTD[0][1], CamCreditsTD[0][2]);
  231.         SetPlayerCameraLookAt(playerid, CamCreditsTD[0][3], CamCreditsTD[0][4], CamCreditsTD[0][5]);
  232.         for(new index=0; index<MAX_CREDITS; index++) \
  233.             TextDrawShowForPlayer(playerid,CreditsTD[playerid][index]);
  234.         KillTimer(KillCreditsTD[playerid][0]);
  235.         KillCreditsTD[playerid][0]=SetTimerEx("LoadCreditsTD",TIMER_CREDITS,true,"d",playerid);
  236.         ViewingCreditsTD[playerid]=true;
  237.     } return true;
  238. }
  239. CALLBACK: OnPlayerRequestSpawn(playerid) {
  240.     return false;
  241. }
  242. CALLBACK: OnPlayerSpawn(playerid) {
  243.     if(ViewingCreditsTD[playerid]==true) {
  244.         for(new msg=0; msg<100; msg++) \
  245.             SendClientMessage(playerid, -1, " ");
  246.         StopAudioStreamForPlayer(playerid);
  247.         TogglePlayerSpectating(playerid, true);
  248.         TogglePlayerSpectating(playerid, false);
  249.         SetCameraBehindPlayer(playerid);
  250.         for(new index=0; index<MAX_CREDITS; index++) \
  251.             TextDrawHideForPlayer(playerid,CreditsTD[playerid][index]);
  252.         KillTimer(KillCreditsTD[playerid][0]);
  253.     } return true;
  254. }
  255. /*
  256.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  257.     *
  258.     * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
  259.     * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  260.     *
  261.     * Codigo Creado Por OTACON
  262.     *
  263.     * CREDITOS:
  264.     *     OTACON: Realizacion y Idea de creacion del code.
  265.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  266.     *
  267.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  268.     *
  269.     *            Prohibido TOTALMENTE el Robo de Créditos o la
  270.     *              Publicación de este FILTERSCRIPT sin Mi Permiso.
  271. */
  272. /*
  273.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  274.     *
  275.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  276.     * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
  277.     *
  278.     * Code Created By OTACON
  279.     *
  280.     * CREDITS:
  281.     *     OTACON: Idea Making and code creation.
  282.     *     YOUR: Modification freely respecting the above ;).
  283.     *
  284.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  285.     *
  286.     *                    FULLY spaces Theft Credit or
  287.     *             Publication of this FILTERSCRIPT without my permission.
  288. */
RAW Paste Data