iCool

iCool's Hostname changer

May 21st, 2014
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. //Hey All. Its me iCool with a new Fs. With this you can have your server's hostname , gamemode text and map name.
  2.  
  3. //Please do not re-releae it without my permission or remove the credits.
  4.  
  5. //Thank You
  6. #include <a_samp>
  7. public OnFilterScriptInit()
  8. {
  9. SetTimer("mapname",500,1);
  10. SetTimer("hostname",500,1);
  11. SetTimer("gamemode",500,1);
  12. return 1;
  13. }
  14. forward mapname();
  15. public mapname()
  16. {
  17. new var = random(3); // u can add more mapnames by increasing the random(3) to any number and a case below.
  18. switch (var)
  19. {
  20. case 0: SendRconCommand("mapname change me"); //You can change the map names here.
  21. case 1: SendRconCommand("mapname change me");
  22. case 2: SendRconCommand("mapname change me");
  23. }
  24. }
  25. forward hostname();
  26. public hostname()
  27. {
  28. new var = random(4); // u can add more hostnames by increasing the random(4) to any number and a case below.
  29. switch (var)
  30. {
  31. case 0: SendRconCommand("hostname change me");//You can change the hostnames here.
  32. case 1: SendRconCommand("hostname change me");
  33. case 2: SendRconCommand("hostname change me");
  34. case 3: SendRconCommand("hostname change me");
  35.  
  36. }
  37. }
  38. forward gamemode();
  39. public gamemode()
  40. {
  41. new var = random(4); // u can add more gamemode text by increasing the random(4) to any number and a case below.
  42. switch (var)
  43. {
  44. case 0: SendRconCommand("gamemodetext change me"); //You can change the gamemode text here.
  45. case 1: SendRconCommand("gamemodetext change me");
  46. case 2: SendRconCommand("gamemodetext change me");
  47. case 3: SendRconCommand("gamemodetext change me");
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment