Advertisement
OtaconEvil

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

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