EmanxD

[FilterScript] Auto : Textdraw Messages

Jan 5th, 2018
758
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. // ...... ...... ...... ...... ..... ...... .... .. . ....
  2. // . . . . . . . . .... . . . ....
  3. // ...... ...... ...... ...... ..... ...... .. . . . .. Espressino aka KyNe aka Sakura Da Eman ( Tea Starbuck )
  4. // . . . .... . . .... . . . ....
  5. // ...... ...... . . . ..... ...... .... . .. ....
  6. // Steamcommunity.com/id/espressino && facebook.com/originalbudax
  7. #include <a_samp>
  8.  
  9. new Text:RandomBox1;
  10. new Text:RandomBox0;
  11.  
  12. forward ServerMessage();
  13.  
  14. new Textdraws[][] =
  15. {
  16. "~p~Server Info: ~w~Your Messages 1................................................",
  17. "~p~Server Info: ~w~Your Messages 2................................................",
  18. "~p~Server Info: ~w~Your Messages 3................................................",
  19. "~p~Server Info: ~w~Your Messages 4................................................",
  20. "~p~Server Info: ~w~Your Messages 5................................................"
  21.  
  22. };
  23.  
  24. public ServerMessage()
  25. {
  26. TextDrawSetString(RandomBox1, Textdraws[random(sizeof(Textdraws))]);
  27.  
  28. return 1;
  29. }
  30.  
  31. public OnFilterScriptInit()
  32. {
  33. //----------------------------------------------------------------------------//
  34. SetTimer("ServerMessage",5000,1);
  35. //----------------------------------------------------------------------------//
  36. RandomBox0 = TextDrawCreate(639.000000, 417.766662, "TransparentBox");
  37. TextDrawLetterSize(RandomBox0, 0.000000, 2.587036);
  38. TextDrawTextSize(RandomBox0, 1.000000, 0.000000);
  39. TextDrawAlignment(RandomBox0, 1);
  40. TextDrawColor(RandomBox0, 0);
  41. TextDrawUseBox(RandomBox0, true);
  42. TextDrawBoxColor(RandomBox0, 102);
  43. TextDrawSetShadow(RandomBox0, 0);
  44. TextDrawSetOutline(RandomBox0, 0);
  45. TextDrawFont(RandomBox0, 0);
  46.  
  47.  
  48. RandomBox1 = TextDrawCreate(10.000000, 423.733367, "String");
  49. TextDrawLetterSize(RandomBox1, 0.449999, 1.600000);
  50. TextDrawAlignment(RandomBox1, 1);
  51. TextDrawColor(RandomBox1, -16711681);
  52. TextDrawSetShadow(RandomBox1, -2);
  53. TextDrawSetOutline(RandomBox1, 0);
  54. TextDrawBackgroundColor(RandomBox1, 51);
  55. TextDrawFont(RandomBox1, 1);
  56. TextDrawSetProportional(RandomBox1, 1);
  57.  
  58.  
  59.  
  60.  
  61.  
  62. for(new i; i < MAX_PLAYERS; i ++)
  63. {
  64. if(IsPlayerConnected(i))
  65. {
  66. TextDrawShowForPlayer(i, RandomBox0);
  67. TextDrawShowForPlayer(i, RandomBox1);
  68. }
  69. }
  70. return 1;
  71. }
  72.  
  73. public OnFilterScriptExit()
  74. {
  75. TextDrawHideForAll(RandomBox1);
  76. TextDrawDestroy(RandomBox1);
  77. TextDrawHideForAll(RandomBox0);
  78. TextDrawDestroy(RandomBox0);
  79. return 1;
  80. }
  81.  
  82. public OnPlayerConnect(playerid)
  83. {
  84. TextDrawShowForPlayer(playerid, RandomBox0);
  85. TextDrawShowForPlayer(playerid, RandomBox1);
  86. return 1;
  87. }
Advertisement
Add Comment
Please, Sign In to add comment