Advertisement
OtaconEvil

[FS] Simple Caballito Dinamico 'TextDraw' By OTACON

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