Advertisement
Guest User

Textdraw by:Dasine94

a guest
Apr 26th, 2012
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. // |
  2. // TEXTDRAW |
  3. // |
  4. // By:Dasine94 |
  5. // |
  6. // My first Textdraw, nothing special.|
  7. //--------------------------------------
  8.  
  9. #include <a_samp>
  10.  
  11. new Text:Textdraw0;
  12. new Text:Textdraw1;
  13.  
  14. public OnFilterScriptInit()
  15. {
  16. // Your Textdraw Here! :D
  17. Textdraw0 = TextDrawCreate(598.000000, 420.000000, "Write What you want here! :)");
  18. TextDrawBackgroundColor(Textdraw0, 255);
  19. TextDrawFont(Textdraw0, 2);
  20. TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
  21. TextDrawColor(Textdraw0, 0xC2A2DAAA);
  22. TextDrawSetOutline(Textdraw0, 0);
  23. TextDrawSetProportional(Textdraw0, 1);
  24. TextDrawSetShadow(Textdraw0, 1);
  25.  
  26. Textdraw1 = TextDrawCreate(595.000000, 429.000000, "Write What you want here! :)");
  27. TextDrawBackgroundColor(Textdraw1, 255);
  28. TextDrawFont(Textdraw1, 2);
  29. TextDrawLetterSize(Textdraw1, 0.300000, 1.000000);
  30. TextDrawColor(Textdraw1, 0xAA3333AA);
  31. TextDrawSetOutline(Textdraw1, 0);
  32. TextDrawSetProportional(Textdraw1, 1);
  33. TextDrawSetShadow(Textdraw1, 1);
  34.  
  35. for(new i; i < MAX_PLAYERS; i ++)
  36. {
  37. if(IsPlayerConnected(i))
  38. {
  39. TextDrawShowForPlayer(i, Textdraw0);
  40. TextDrawShowForPlayer(i, Textdraw1);
  41. }
  42. }
  43. return 1;
  44. }
  45.  
  46. public OnFilterScriptExit()
  47. {
  48. TextDrawHideForAll(Textdraw0);
  49. TextDrawDestroy(Textdraw0);
  50. TextDrawHideForAll(Textdraw1);
  51. TextDrawDestroy(Textdraw1);
  52. return 1;
  53. }
  54.  
  55. public OnPlayerConnect(playerid)
  56. {
  57. TextDrawShowForPlayer(playerid, Textdraw0);
  58. TextDrawShowForPlayer(playerid, Textdraw1);
  59. return 1;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement