Advertisement
Guest User

Untitled

a guest
May 27th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. ////===========================================///
  2. ////==Hostname Changer by Second / Geerdinho8==///
  3. ////===========================================///
  4.  
  5.  
  6. #include <a_samp>
  7.  
  8.  
  9. forward hostname();
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. SetTimer("hostname",3000,1);//<<< You can change the ammount of time the hostname stays till it changes(1000 = 1 second)
  14. return 1;
  15. }
  16.  
  17.  
  18. public hostname()
  19. {
  20. new var = random(5); //If you want less or more messages you can change the random(5); for example to random(8); if you have 8 different messages but dont forget to edit the cases too!! switch (var)
  21. switch (var)
  22. {
  23. case 0: SendRconCommand("hostname Come and take a look in my server!");
  24. case 1: SendRconCommand("hostname Everybody is welcome!");
  25. case 2: SendRconCommand("hostname www.sa-mp.com");
  26. case 3: SendRconCommand("hostname Don't be afraid to join.");
  27. case 4: SendRconCommand("hostname Hostname changer by Second");
  28. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement