Advertisement
OtaconEvil

[FS] Simple Caballito Dinamico 'TextDraw' V3 By OTACON

Jul 21st, 2013
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.29 KB | None | 0 0
  1. /*
  2.              Prohibido TOTALMENTE el Robo de Créditos o la
  3.              Publicación de este FILTERSCRIPT sin Mi Permiso.
  4.  
  5.                      FULLY spaces Theft Credit or
  6.           Publication of this FILTERSCRIPT without my permission.
  7.  
  8.     SIMPLE FILTERSCRIPT --> Simple Horse Dynamic 'TextDraw' V3
  9.     CREDITOS: OTACON ;)
  10.     NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  11. */
  12. #include <a_samp>
  13. #define VELOCIDAD_CABALLITO 2.0
  14. #define MAX_CABALLITO (3)
  15. new Text:CaballitoDinamicoTD[MAX_PLAYERS][MAX_CABALLITO];
  16. new MatarTimerCaballito[MAX_PLAYERS];
  17. new TextCaballito[][] = { "ld_otb:hrs1", "ld_otb:hrs2", "ld_otb:hrs3", "ld_otb:hrs4", "ld_otb:hrs5", "ld_otb:hrs6", "ld_otb:hrs7", "ld_otb:hrs8" };
  18. new Float:PosicionCaballito[3] = { 30.000000, 565.000000, 30.000000};
  19. new Float:AlturaCaballito[3] = { 120.000000, 180.000000, 240.000000 };
  20.  
  21. public OnFilterScriptInit() {
  22.     print("\n**************************************");
  23.     print("   Simple Horse Dynamic 'TextDraw' V3   ");
  24.     print("           Date: 21/07/2013             ");
  25.     print("            Author: OTACON              ");
  26.     print("     --* Loaded with Success!!. *--     ");
  27.     print("***************************************\n");
  28.     return true;
  29. }
  30. public OnFilterScriptExit() {
  31.     print("\n**************************************");
  32.     print("   Simple Horse Dynamic 'TextDraw' V3   ");
  33.     print("           Date: 21/07/2013             ");
  34.     print("            Author: OTACON              ");
  35.     print("   --* Downloaded with Success!!. *--   ");
  36.     print("***************************************\n");
  37.     return true;
  38. }
  39. public OnPlayerConnect(playerid) {
  40.     CaballitoDinamicoTD[playerid][0] = TextDrawCreate(30.000000, AlturaCaballito[0], "_");
  41.     CaballitoDinamicoTD[playerid][1] = TextDrawCreate(30.000000, AlturaCaballito[1], "_");
  42.     CaballitoDinamicoTD[playerid][2] = TextDrawCreate(30.000000, AlturaCaballito[2], "_");
  43.     for(new slots=0; slots<MAX_CABALLITO; slots++) {
  44.         TextDrawBackgroundColor(CaballitoDinamicoTD[playerid][slots], 255);
  45.         TextDrawFont(CaballitoDinamicoTD[playerid][slots], 4);
  46.         TextDrawLetterSize(CaballitoDinamicoTD[playerid][slots], 0.500000, 1.000000);
  47.         TextDrawColor(CaballitoDinamicoTD[playerid][slots], -1);
  48.         TextDrawSetOutline(CaballitoDinamicoTD[playerid][slots], 0);
  49.         TextDrawSetProportional(CaballitoDinamicoTD[playerid][slots], 1);
  50.         TextDrawSetShadow(CaballitoDinamicoTD[playerid][slots], 1);
  51.         TextDrawUseBox(CaballitoDinamicoTD[playerid][slots], 1);
  52.         TextDrawBoxColor(CaballitoDinamicoTD[playerid][slots], 255);
  53.         TextDrawTextSize(CaballitoDinamicoTD[playerid][slots], 70.000000, 62.000000);
  54.     } return true;
  55. }
  56. public OnPlayerDisconnect(playerid, reason) {
  57.     for(new slots=0; slots<MAX_CABALLITO; slots++) {
  58.         TextDrawHideForPlayer(playerid, CaballitoDinamicoTD[playerid][slots]);
  59.         TextDrawDestroy(CaballitoDinamicoTD[playerid][slots]);
  60.     } KillTimer(MatarTimerCaballito[playerid]);
  61.     return true;
  62. }
  63. public OnPlayerSpawn(playerid) {
  64.     for(new slots=0; slots<MAX_CABALLITO; slots++) {
  65.         TextDrawShowForPlayer(playerid, CaballitoDinamicoTD[playerid][slots]);
  66.     } MatarTimerCaballito[playerid]=SetTimerEx("MoverCaballito", 200, true, "d", playerid);
  67.     return true;
  68. }
  69. forward MoverCaballito(playerid);
  70. public MoverCaballito(playerid) {
  71.     static indexcaballito;
  72.     indexcaballito++;
  73.     PosicionCaballito[0]+=VELOCIDAD_CABALLITO;
  74.     for(new slots=0; slots<3; slots++) {
  75.         TextDrawHideForPlayer(playerid, CaballitoDinamicoTD[playerid][slots]);
  76.         TextDrawDestroy(CaballitoDinamicoTD[playerid][slots]);
  77.         new Float:AlturaCaballitoTemp=0.0;
  78.         switch(slots) {
  79.             case 0: AlturaCaballitoTemp=AlturaCaballito[0];
  80.             case 1: AlturaCaballitoTemp=AlturaCaballito[1];
  81.             case 2: AlturaCaballitoTemp=AlturaCaballito[2];
  82.             default: AlturaCaballitoTemp=0.0; }
  83.         CaballitoDinamicoTD[playerid][slots] = TextDrawCreate(PosicionCaballito[0], AlturaCaballitoTemp, "_");
  84.         TextDrawBackgroundColor(CaballitoDinamicoTD[playerid][slots], 255);
  85.         TextDrawFont(CaballitoDinamicoTD[playerid][slots], 4);
  86.         TextDrawLetterSize(CaballitoDinamicoTD[playerid][slots], 0.500000, 1.000000);
  87.         TextDrawColor(CaballitoDinamicoTD[playerid][slots], -1);
  88.         TextDrawSetOutline(CaballitoDinamicoTD[playerid][slots], 0);
  89.         TextDrawSetProportional(CaballitoDinamicoTD[playerid][slots], 1);
  90.         TextDrawSetShadow(CaballitoDinamicoTD[playerid][slots], 1);
  91.         TextDrawUseBox(CaballitoDinamicoTD[playerid][slots], 1);
  92.         TextDrawBoxColor(CaballitoDinamicoTD[playerid][slots], 255);
  93.         TextDrawTextSize(CaballitoDinamicoTD[playerid][slots], 70.000000, 62.000000);
  94.         TextDrawSetString(CaballitoDinamicoTD[playerid][slots], TextCaballito[indexcaballito]);
  95.         TextDrawShowForPlayer(playerid, CaballitoDinamicoTD[playerid][slots]);
  96.     }
  97.     if(indexcaballito>=7) indexcaballito=0;
  98.     if(PosicionCaballito[0]>=PosicionCaballito[1]) PosicionCaballito[0]=PosicionCaballito[2], PosicionCaballito[0]=PosicionCaballito[2];
  99. }
  100. /*
  101.              Prohibido TOTALMENTE el Robo de Créditos o la
  102.              Publicación de este FILTERSCRIPT sin Mi Permiso.
  103.  
  104.                      FULLY spaces Theft Credit or
  105.           Publication of this FILTERSCRIPT without my permission.
  106.  
  107.     SIMPLE FILTERSCRIPT --> Simple Horse Dynamic 'TextDraw' V3
  108.     CREDITOS: OTACON ;)
  109.     NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  110. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement