Guest User

Mo3

a guest
Sep 26th, 2009
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. #include <a_samp>
  2. #define FILTERSCRIPT
  3. forward mapname();
  4. forward mapname2();
  5. forward hostname();
  6. forward hostname2();
  7. #define mapnamechangetime 3000 // Change "3000" to the value how often the mapname is changed, 1000 = 1 second
  8. #define hostnamechangetime 3000 // Change "3000" to the value how often the hostname is changed, 1000 = 1 second
  9.  
  10. //----------------------------------------------------------------------------
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. print("\n--------------------------------------");
  15. print(" Advanced mapname and hostname changer ");
  16. print(" By Mo3 aka TheFailFactor");
  17. print("--------------------------------------\n");
  18. SetTimer("mapname", 3000, 0);
  19. SetTimer("hostname", 3000, 0);
  20. return 1;
  21. }
  22.  
  23. //----------------------------------------------------------------------------
  24.  
  25. public mapname()
  26. {
  27. SendRconCommand("mapname [YOUR FIRST MAPNAME HERE]");
  28. SetTimer("mapname2", mapnamechangetime, 0);
  29. return 1;
  30. }
  31. public mapname2()
  32. {
  33. SendRconCommand("mapname [YOUR SECOND MAPNAME HERE]");
  34. SetTimer("mapname", mapnamechangetime, 0);
  35. return 1;
  36. }
  37. public hostname()
  38. {
  39. SendRconCommand("hostname [YOUR FIRST HOSTNAME HERE]");
  40. SetTimer("hostname", hostnamechangetime, 0);
  41. return 1;
  42. }
  43. public hostname2()
  44. {
  45. SendRconCommand("hostname [YOUR SECOND HOSTNAME HERE]~ ");
  46. SetTimer("hostname2", hostnamechangetime, 0);
  47. return 1;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment