OtaconEvil

[INC] Easy logo Gangster By OTACON

Aug 29th, 2013
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 11.67 KB | None | 0 0
  1. /*
  2.              Prohibido TOTALMENTE el Robo de Créditos o la
  3.               Publicación de este INCLUDE sin Mi Permiso.
  4.  
  5.                      FULLY spaces Theft Credit or
  6.            Publication of this INCLUDE without my permission.
  7.  
  8.         SIMPLE INCLUDE --> Easy logo Gangster
  9.         CREDITOS: OTACON ;)
  10.         NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  11. */
  12. /*
  13.     //FUNCTION:
  14.         native DestroyGangsterLogo(playerid); //to destroy TextDraw.
  15.         native ShowGangsterLogo(playerid); //to show TextDraw.
  16.         native HideGangsterLogo(playerid);  //to hide TextDraw.
  17.         native CreateGangsterLogo(playerid);  //to create TextDraw.
  18.         native SetGangsterLogo(playerid,type); //to define the type of logo Gangster.
  19.     //TYPE:
  20.         Grove      
  21.         Ballas      
  22.         Aztecas    
  23.         Vagos      
  24.         Boys
  25.         Rifa
  26.         Triads
  27.         Bikers      
  28.         Russian    
  29.         Italian    
  30. */
  31. /*
  32.     // ----- TESTING -----
  33.     #include <a_samp>
  34.     #include <zcmd>
  35.     #include <sscanf2>
  36.     #include <LogoGangster>
  37.     #define FUNCTION:%0(%1) forward%0(%1); public%0(%1)
  38.  
  39.     FUNCTION: OnFilterScriptInit() {
  40.         print("\n**************************************");
  41.         print("           Easy logo Gangster           ");
  42.         print("            Date: 29/08/2013            ");
  43.         print("             Author: OTACON             ");
  44.         print("     --* Loaded with Success!!. *--     ");
  45.         print("***************************************\n");
  46.         SendRconCommand("hostname Easy logo Gangster");
  47.         SendRconCommand("gamemodetext By OTACON");
  48.         return true;
  49.     }
  50.     FUNCTION: OnFilterScriptExit() {
  51.         print("\n**************************************");
  52.         print("           Easy logo Gangster           ");
  53.         print("            Date: 29/08/2013            ");
  54.         print("             Author: OTACON             ");
  55.         print("   --* Downloaded with Success!!. *--   ");
  56.         print("***************************************\n");
  57.         SendRconCommand("hostname Easy logo Gangster");
  58.         SendRconCommand("gamemodetext By OTACON");
  59.         return true;
  60.     }
  61.     FUNCTION: OnPlayerConnect(playerid) {
  62.         CreateGangsterLogo(playerid);
  63.         return true;
  64.     }
  65.     FUNCTION: OnPlayerDisconnect(playerid, reason) {
  66.         HideGangsterLogo(playerid);
  67.         DestroyGangsterLogo(playerid);
  68.         return true;
  69.     }
  70.     COMMAND:test(playerid, params[]) {
  71.         if(sscanf(params, "d", params[0])) return true;
  72.         SetGangsterLogo(playerid,params[0]);
  73.         HideGangsterLogo(playerid);
  74.         ShowGangsterLogo(playerid);
  75.         return true;
  76.     }
  77.     // ----- TESTING -----
  78. */
  79. // ----- FUNCTION -----
  80. #define SetGangsterLogo(%0,%1) TypeGangsterTD[%0]=0,TypeGangsterTD[%0]=%1,GangsterLogo(%0)
  81. #define Default     (0)
  82. #define Grove       (1)
  83. #define Ballas      (2)
  84. #define Aztecas     (3)
  85. #define Vagos       (4)
  86. #define Boys        (5)
  87. #define Rifa        (6)
  88. #define Triads      (7)
  89. #define Bikers      (8)
  90. #define Russian     (9)
  91. #define Italian     (10)
  92.  
  93. #define TRANSPARENCIA 0
  94. #define MAX_TD_GANGS (4)
  95. new PlayerText:GangsterTD[MAX_PLAYERS][MAX_TD_GANGS];
  96. new TypeGangsterTD[MAX_PLAYERS];
  97.  
  98. stock DestroyGangsterLogo(playerid) {
  99.     for(new index=0; index<MAX_TD_GANGS; index++) \
  100.         PlayerTextDrawDestroy(playerid, GangsterTD[playerid][index]);
  101. }
  102. stock ShowGangsterLogo(playerid) {
  103.     for(new index=0; index<MAX_TD_GANGS; index++) \
  104.         PlayerTextDrawShow(playerid, GangsterTD[playerid][index]);
  105. }
  106. stock HideGangsterLogo(playerid) {
  107.     for(new index=0; index<MAX_TD_GANGS; index++) \
  108.         PlayerTextDrawHide(playerid, GangsterTD[playerid][index]);
  109. }
  110. stock CreateGangsterLogo(playerid) {
  111.     GangsterTD[playerid][0] = CreatePlayerTextDraw(playerid,185.000000, 69.000000, "_");
  112.     PlayerTextDrawBackgroundColor(playerid,GangsterTD[playerid][0], TRANSPARENCIA);
  113.     PlayerTextDrawFont(playerid,GangsterTD[playerid][0], 5);
  114.     PlayerTextDrawLetterSize(playerid,GangsterTD[playerid][0], 0.500000, 1.000000);
  115.     PlayerTextDrawColor(playerid,GangsterTD[playerid][0], -1);
  116.     PlayerTextDrawSetOutline(playerid,GangsterTD[playerid][0], 0);
  117.     PlayerTextDrawSetProportional(playerid,GangsterTD[playerid][0], 1);
  118.     PlayerTextDrawSetShadow(playerid,GangsterTD[playerid][0], 1);
  119.     PlayerTextDrawUseBox(playerid,GangsterTD[playerid][0], 1);
  120.     PlayerTextDrawBoxColor(playerid,GangsterTD[playerid][0], 255);
  121.     PlayerTextDrawTextSize(playerid,GangsterTD[playerid][0], 261.000000, 251.000000);
  122.     PlayerTextDrawSetSelectable(playerid,GangsterTD[playerid][0], 0);
  123.     PlayerTextDrawSetPreviewRot(playerid,GangsterTD[playerid][0], 0.0, 0.0, 0.0, 1.0);
  124.  
  125.     GangsterTD[playerid][1] = CreatePlayerTextDraw(playerid,94.000000, 69.000000, "_");
  126.     PlayerTextDrawBackgroundColor(playerid,GangsterTD[playerid][1], TRANSPARENCIA);
  127.     PlayerTextDrawFont(playerid,GangsterTD[playerid][1], 5);
  128.     PlayerTextDrawLetterSize(playerid,GangsterTD[playerid][1], 0.500000, 1.000000);
  129.     PlayerTextDrawColor(playerid,GangsterTD[playerid][1], -1);
  130.     PlayerTextDrawSetOutline(playerid,GangsterTD[playerid][1], 0);
  131.     PlayerTextDrawSetProportional(playerid,GangsterTD[playerid][1], 1);
  132.     PlayerTextDrawSetShadow(playerid,GangsterTD[playerid][1], 1);
  133.     PlayerTextDrawUseBox(playerid,GangsterTD[playerid][1], 1);
  134.     PlayerTextDrawBoxColor(playerid,GangsterTD[playerid][1], 255);
  135.     PlayerTextDrawTextSize(playerid,GangsterTD[playerid][1], 261.000000, 251.000000);
  136.     PlayerTextDrawSetSelectable(playerid,GangsterTD[playerid][1], 0);
  137.     PlayerTextDrawSetPreviewRot(playerid,GangsterTD[playerid][1], 0.0, 0.0, 25.0, 1.0);
  138.  
  139.     GangsterTD[playerid][2] = CreatePlayerTextDraw(playerid,272.000000, 69.000000, "_");
  140.     PlayerTextDrawBackgroundColor(playerid,GangsterTD[playerid][2], TRANSPARENCIA);
  141.     PlayerTextDrawFont(playerid,GangsterTD[playerid][2], 5);
  142.     PlayerTextDrawLetterSize(playerid,GangsterTD[playerid][2], 0.500000, 1.000000);
  143.     PlayerTextDrawColor(playerid,GangsterTD[playerid][2], -1);
  144.     PlayerTextDrawSetOutline(playerid,GangsterTD[playerid][2], 0);
  145.     PlayerTextDrawSetProportional(playerid,GangsterTD[playerid][2], 1);
  146.     PlayerTextDrawSetShadow(playerid,GangsterTD[playerid][2], 1);
  147.     PlayerTextDrawUseBox(playerid,GangsterTD[playerid][2], 1);
  148.     PlayerTextDrawBoxColor(playerid,GangsterTD[playerid][2], 255);
  149.     PlayerTextDrawTextSize(playerid,GangsterTD[playerid][2], 261.000000, 251.000000);
  150.     PlayerTextDrawSetSelectable(playerid,GangsterTD[playerid][2], 0);
  151.     PlayerTextDrawSetPreviewRot(playerid,GangsterTD[playerid][2], 0.0, 0.0, -25.0, 1.0);
  152.  
  153.     GangsterTD[playerid][3] = CreatePlayerTextDraw(playerid,316.000000, 261.000000, "_");
  154.     PlayerTextDrawAlignment(playerid,GangsterTD[playerid][3], 2);
  155.     PlayerTextDrawBackgroundColor(playerid,GangsterTD[playerid][3], 255);
  156.     PlayerTextDrawFont(playerid,GangsterTD[playerid][3], 2);
  157.     PlayerTextDrawLetterSize(playerid,GangsterTD[playerid][3], 0.540000, 4.700001);
  158.     PlayerTextDrawColor(playerid,GangsterTD[playerid][3], -1);
  159.     PlayerTextDrawSetOutline(playerid,GangsterTD[playerid][3], 1);
  160.     PlayerTextDrawSetProportional(playerid,GangsterTD[playerid][3], 1);
  161.     PlayerTextDrawSetSelectable(playerid,GangsterTD[playerid][3], 0);
  162. }
  163. stock GangsterLogo(playerid) {
  164.     switch(TypeGangsterTD[playerid]) {
  165.         case 1: { //GroveStreet
  166.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 105);
  167.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 106);
  168.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 107);
  169.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Grove Street");
  170.         }
  171.         case 2: { //Ballas
  172.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 102);
  173.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 103);
  174.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 104);
  175.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Ballas");
  176.         }
  177.         case 3: { //Aztecas
  178.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 114);
  179.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 115);
  180.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 116);
  181.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Aztecas");
  182.         }
  183.         case 4: { //Vagos
  184.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 108);
  185.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 109);
  186.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 110);
  187.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Vagos");
  188.         }
  189.         case 5: { //Boys
  190.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 121);
  191.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 122);
  192.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 123);
  193.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Da Nang Boys");
  194.         }
  195.         case 6: { //Rifa
  196.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 173);
  197.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 174);
  198.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 175);
  199.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The San Fierro Rifa");
  200.         }
  201.         case 7: { //Triads
  202.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 120);
  203.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 118);
  204.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 117);
  205.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Triads");
  206.         }
  207.         case 8: { //Bikers
  208.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 248);
  209.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 247);
  210.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 254);
  211.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Bikers");
  212.         }
  213.         case 9: { //Russian
  214.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 111);
  215.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 113);
  216.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 112);
  217.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Russian Mafia");
  218.         }
  219.         case 10: { //Italian
  220.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 124);
  221.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 126);
  222.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 125);
  223.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~The Italian Mafia");
  224.         }
  225.         default: { //Default
  226.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][0], 4);
  227.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][1], 5);
  228.             PlayerTextDrawSetPreviewModel(playerid,GangsterTD[playerid][2], 5);
  229.             PlayerTextDrawSetString(playerid,GangsterTD[playerid][3], "~w~ By OTACON");
  230.         }
  231.     }
  232. }
  233. // ----- FUNCTION -----
  234. /*
  235.     //FUNCTION:
  236.         native DestroyGangsterLogo(playerid); //to destroy TextDraw.
  237.         native ShowGangsterLogo(playerid); //to show TextDraw.
  238.         native HideGangsterLogo(playerid);  //to hide TextDraw.
  239.         native CreateGangsterLogo(playerid);  //to create TextDraw.
  240.         native SetGangsterLogo(playerid,type); //to define the type of logo Gangster.
  241.     //TYPE:
  242.         Grove
  243.         Ballas
  244.         Aztecas
  245.         Vagos
  246.         Boys
  247.         Rifa
  248.         Triads
  249.         Bikers
  250.         Russian
  251.         Italian
  252. */
  253. /*
  254.              Prohibido TOTALMENTE el Robo de Créditos o la
  255.               Publicación de este INCLUDE sin Mi Permiso.
  256.  
  257.                      FULLY spaces Theft Credit or
  258.            Publication of this INCLUDE without my permission.
  259.  
  260.         SIMPLE INCLUDE --> Easy logo Gangster
  261.         CREDITOS: OTACON ;)
  262.         NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  263. */
Advertisement
Add Comment
Please, Sign In to add comment