Guest User

SA-MP Random Hostname - Toolkit

a guest
Aug 13th, 2014
1,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new HostnameRandom = 1;
  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(" Random Hostname - ToOlkit ");
  27. print("***********************************\n");
  28. }
  29.  
  30. public Hostname()
  31. {
  32. switch(HostnameRandom)
  33. {
  34. case 1: SendRconCommand("hostname Random Hostname 1"); HostnameRandom = 2;
  35. case 2: SendRconCommand("hostname Random Hostname 2"); HostnameRandom = 3;
  36. case 3: SendRconCommand("hostname Random Hostname 3"); HostnameRandom = 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 Hostname 1");
  47. case 2: SendRconCommand("hostname Random Hostname 2");
  48. }
  49. return 1;
  50. }*/
  51.  
  52. #endif
Advertisement
Add Comment
Please, Sign In to add comment