KrisnaPradnya

ColourFul Textdraw

Dec 23rd, 2013
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.54 KB | None | 0 0
  1. /*
  2. MADE BY KRISNA
  3. DONOT REMOVE CREDITS
  4. */
  5.  
  6. #include <a_samp>
  7.  
  8. #define HUMU_1 "~r~KRIS~b~NA ~y~PRAD~g~~h~NYA"
  9. #define HUMU_2 "~g~~h~KRIS~r~NA ~b~PRAD~y~NYA"
  10. #define HUMU_3 "~y~KRIS~g~~h~NA ~r~PRAD~b~NYA"
  11. #define HUMU_4 "~b~KRIS~y~NA ~g~~h~PRAD~r~NYA"
  12.  
  13. new Text:Textdraw0;
  14.  
  15. public OnFilterScriptInit()
  16. {
  17.     print("File Humu Loaded");
  18.  
  19.     // Create the textdraws:
  20.     Textdraw0 = TextDrawCreate(24.000000, 319.000000, "~r~KRIS~b~NA ~y~PRAD~g~~h~NYA");
  21.     TextDrawBackgroundColor(Textdraw0, 255);
  22.     TextDrawFont(Textdraw0, 2);
  23.     TextDrawLetterSize(Textdraw0, 0.380000, 1.599999);
  24.     TextDrawColor(Textdraw0, -1);
  25.     TextDrawSetOutline(Textdraw0, 1);
  26.     TextDrawSetProportional(Textdraw0, 1);
  27.     TextDrawSetSelectable(Textdraw0, 0);
  28.    
  29.     SetTimer("animatedhumu",1000,1);
  30.  
  31.     for(new i; i < MAX_PLAYERS; i ++)
  32.     {
  33.         if(IsPlayerConnected(i))
  34.         {
  35.             TextDrawShowForPlayer(i, Textdraw0);
  36.         }
  37.     }
  38.     return 1;
  39. }
  40. forward animatedhumu();
  41. public animatedhumu()
  42. {
  43.     TextDrawSetString(Textdraw0, HUMU_1);
  44.     SetTimer("humu2",1000,1);
  45. }
  46. forward humu2();
  47. public humu2()
  48. {
  49.     TextDrawSetString(Textdraw0, HUMU_2);
  50.     SetTimer("humu3",1000,1);
  51. }
  52. forward humu3();
  53. public humu3()
  54. {
  55.     TextDrawSetString(Textdraw0, HUMU_3);
  56.     SetTimer("humu4",1000,1);
  57. }
  58. forward humu4();
  59. public humu4()
  60. {
  61.     TextDrawSetString(Textdraw0, HUMU_4);
  62.     SetTimer("animatedhumu",1000,1);
  63. }
  64. public OnFilterScriptExit()
  65. {
  66.     TextDrawHideForAll(Textdraw0);
  67.     TextDrawDestroy(Textdraw0);
  68.     return 1;
  69. }
  70.  
  71. public OnPlayerSpawn(playerid)
  72. {
  73.     TextDrawShowForPlayer(playerid, Textdraw0);
  74.     return 1;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment