Guest User

Hiba

a guest
Aug 13th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1.  
  2. #define HOSTNAME1 "[Hun]Magyarok Kamionos Szervere [0.3.7]"
  3. #define HOSTNAME2 "Tesztik a szerver? Hívd barátaidat is!"
  4. #define HOSTNAME3 "A szerver folyamatos fejlesztés allat áll!"
  5.  
  6. #define function%0(%1) forward%0(%1);public%0(%1)
  7.  
  8. new hnid = -1;
  9.  
  10. public OnFilterScriptInit() {
  11. HostnameChanger();
  12. SetTimer("HostnameChanger", 5000, true); // 5mp-n ként változik a szerver neve.
  13. return 1;
  14. }
  15.  
  16. function HostnameChanger() {
  17. hnid++;
  18. switch(hnid) {
  19. case 0: SendRconCommand("hostname "#HOSTNAME1"");
  20. case 1: SendRconCommand("hostname "#HOSTNAME2"");
  21. case 2: SendRconCommand("hostname "#HOSTNAME3"");
  22. }
  23. if(hnid == 2) hnid = -1;
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment