Guest User

textdraw

a guest
Jul 30th, 2012
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. // Randommessages On Textdraw by Audi_Quattrix
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5.  
  6. #if defined FILTERSCRIPT
  7. new Text:randommsg;
  8. new RandomMessagez[][] =
  9. {
  10. "~y~Message 1",
  11. "~y~Message 2",
  12. "~y~Message 3",
  13. "~y~Message 4"
  14. };
  15. public OnFilterScriptInit()
  16. {
  17. print("\n--------------------------------------");
  18. print(" Random textdraw messages by Audi_Quattrix loaded");
  19. print("--------------------------------------\n");
  20. SetTimer("RandomMessage",5000,1);
  21. randommsg = TextDrawCreate(7.000000, 427.000000, "");
  22. TextDrawBackgroundColor(randommsg, 255);
  23. TextDrawFont(randommsg, 1);
  24. TextDrawLetterSize(randommsg, 0.379999, 1.499999);
  25. TextDrawColor(randommsg, -1);
  26. TextDrawSetOutline(randommsg, 1);
  27. TextDrawSetProportional(randommsg, 1);
  28. return 1;
  29. }
  30.  
  31. public OnFilterScriptExit()
  32. {
  33. print("\n--------------------------------------");
  34. print(" Random textdraw messages by Audi_Quattrix unloaded");
  35. print("--------------------------------------\n");
  36. return 1;
  37. }
  38. forward RandomMessage();
  39. public RandomMessage()
  40. {
  41. TextDrawSetString(randommsg, RandomMessagez[random(sizeof(RandomMessagez))]);
  42. return 1;
  43. }
  44. #endif
Advertisement
Add Comment
Please, Sign In to add comment