Mellnik

Untitled

Jun 20th, 2014
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2.  
  3. new HostnameChanger = 0; // If you use switch(hostnamechanger) You need to comment out the last public
  4.  
  5. forward Hostname();
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     SetTimer("Hostname", 60000, 1);
  10.     return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15.     KillTimer(Hostname);
  16.     return 1;
  17. }
  18.  
  19. public Hostname()
  20. {
  21. restart:
  22.     switch(++HostnameChanger)
  23.     {
  24.         case 1: SendRconCommand("hostname Random Test 1");
  25.         case 2: SendRconCommand("hostname Random Test 2");
  26.         case 3: SendRconCommand("hostname Random Test 3 Final");
  27.                 default:
  28.                 {
  29.                      HostnameChanger = 0;
  30.                      goto restart;
  31.                 }
  32.     }
  33.     return 1;
  34. }
  35.  
  36. /*public Hostname()
  37. {
  38.     switch(random(2))
  39.     {
  40.         case 1: SendRconCommand("hostname Random Test 1");
  41.         case 2: SendRconCommand("hostname Random Test 2");
  42.     }
  43.     return 1;
  44. }*/
Advertisement
Add Comment
Please, Sign In to add comment