Guest User

Untitled

a guest
Feb 23rd, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. /*
  2. Filterscript generated using Zamaroht's TextDraw Editor Version 1.0.
  3. Designed for SA-MP 0.3a.
  4.  
  5. Time and Date: 2013-2-23 @ 0:1:59
  6.  
  7. Instructions:
  8. 1- Compile this file using the compiler provided with the sa-mp server package.
  9. 2- Copy the .amx file to the filterscripts directory.
  10. 3- Add the filterscripts in the server.cfg file (more info here:
  11. http://wiki.sa-mp.com/wiki/Server.cfg)
  12. 4- Run the server!
  13.  
  14. Disclaimer:
  15. You have full rights over this file. You can distribute it, modify it, and
  16. change it as much as you want, without having to give any special credits.
  17. */
  18.  
  19. #include <a_samp>
  20.  
  21. new Text:Textdraw0;
  22. new Text:Textdraw1;
  23.  
  24. public OnFilterScriptInit()
  25. {
  26. print("Textdraw file generated by");
  27. print(" Zamaroht's textdraw editor was loaded.");
  28.  
  29. // Create the textdraws:
  30. Textdraw0 = TextDrawCreate(521.000000, 376.000000, "Zone Extreme");
  31. TextDrawBackgroundColor(Textdraw0, 255);
  32. TextDrawFont(Textdraw0, 3);
  33. TextDrawLetterSize(Textdraw0, 0.340000, 2.499999);
  34. TextDrawColor(Textdraw0, 16711935);
  35. TextDrawSetOutline(Textdraw0, 1);
  36. TextDrawSetProportional(Textdraw0, 1);
  37. TextDrawSetSelectable(Textdraw0, 0);
  38.  
  39. Textdraw1 = TextDrawCreate(549.000000, 402.000000, "Freeroam");
  40. TextDrawBackgroundColor(Textdraw1, 255);
  41. TextDrawFont(Textdraw1, 3);
  42. TextDrawLetterSize(Textdraw1, 0.500000, 1.700000);
  43. TextDrawColor(Textdraw1, -16776961);
  44. TextDrawSetOutline(Textdraw1, 1);
  45. TextDrawSetProportional(Textdraw1, 1);
  46. TextDrawSetSelectable(Textdraw1, 0);
  47.  
  48. for(new i; i < MAX_PLAYERS; i ++)
  49. {
  50. if(IsPlayerConnected(i))
  51. {
  52. TextDrawShowForPlayer(i, Textdraw0);
  53. TextDrawShowForPlayer(i, Textdraw1);
  54. }
  55. }
  56. return 1;
  57. }
  58.  
  59. public OnFilterScriptExit()
  60. {
  61. TextDrawHideForAll(Textdraw0);
  62. TextDrawDestroy(Textdraw0);
  63. TextDrawHideForAll(Textdraw1);
  64. TextDrawDestroy(Textdraw1);
  65. return 1;
  66. }
  67.  
  68. public OnPlayerConnect(playerid)
  69. {
  70. TextDrawShowForPlayer(playerid, Textdraw0);
  71. TextDrawShowForPlayer(playerid, Textdraw1);
  72. return 1;
  73. }
Advertisement
Add Comment
Please, Sign In to add comment