Guest User

SA-MP Filterscript; Random Hostname System

a guest
Jun 20th, 2014
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new HostnameChanger = 1; // If you use switch(hostnamechanger) You need to comment out the last public
  4.  
  5. forward Hostname();
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. SetTimer("Hostname", 60000, 1);
  12. return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17. KillTimer(Hostname);
  18. return 1;
  19. }
  20.  
  21. #else
  22.  
  23. main()
  24. {
  25. print("\n----------------------------------");
  26. print(" Hostname Randomizer By Ciandlah");
  27. print("----------------------------------\n");
  28. }
  29.  
  30. public Hostname()
  31. {
  32. switch(HostnameChanger)
  33. {
  34. case 1: SendRconCommand("hostname Random Test 1"); HostnameChanger = 2;
  35. case 2: SendRconCommand("hostname Random Test 2"); HostnameChanger = 3;
  36. case 3: SendRconCommand("hostname Random Test 3 Final"); HostnameChanger = 1;
  37. }
  38. return 1;
  39. }
  40.  
  41. /*public Hostname()
  42. {
  43. new var = random(2);
  44. switch(var)
  45. {
  46. case 1: SendRconCommand("hostname Random Test 1");
  47. case 2: SendRconCommand("hostname Random Test 2");
  48. }
  49. return 1;
  50. }*/
  51.  
  52. #endif
Advertisement
Add Comment
Please, Sign In to add comment