KrisnaPradnya

krisnapradnya

May 25th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. #include <a_samp>
  2. #include <sscanf2>
  3.  
  4. #define ServerName "Spirit Gamers Roleplay" // define server(host) name, •••> Host Name <•••
  5. forward hostname(playerid);
  6. //Style 1 is with ">" Style 2 is with "¦+" and Style 3 is with "›‹"
  7. //just change number
  8. #define Style 1
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Host Name Changer by Antonio Loaded!!!");
  13. print("--------------------------------------\n");
  14. SetTimer("hostname", 500, 1);
  15. return 1;
  16. }
  17. //please keep credits :)
  18. public OnFilterScriptExit()
  19. {
  20. print("\n--------------------------------------");
  21. print(" Host Name Changer by Antonio UnLoaded!!!");
  22. print("--------------------------------------\n");
  23. return 1;
  24. }
  25.  
  26. public hostname(playerid)
  27. {
  28. #if Style == 1
  29.  
  30. new Msg[128], var = random(4);
  31. switch (var)
  32. {
  33. case 0:
  34. {
  35. format(Msg, 200, "hostname %s Super Grege!", ServerName);
  36. SendRconCommand(Msg);
  37. }
  38. case 1:
  39. {
  40. format(Msg, 200, "hostname %s www.spirit-gamers.vv.si", ServerName);
  41. SendRconCommand(Msg);
  42. }
  43. case 2:
  44. {
  45. format(Msg, 200, "hostname %s Ingat Donated!!!", ServerName);
  46. SendRconCommand(Msg);
  47. }
  48. case 3:
  49. {
  50. format(Msg, 200, "hostname %s Ngk Join Barbel Melayang!", ServerName);
  51. SendRconCommand(Msg);
  52. }
  53. }
  54. #endif
  55. #if Style == 2
  56.  
  57. new Msg[128], var = random(4);
  58. switch (var)
  59. {
  60. case 0:
  61. {
  62. format(Msg, 200, "hostname %s|Event-Event Menarik!", ServerName);
  63. SendRconCommand(Msg);
  64. }
  65. case 1:
  66. {
  67. format(Msg, 200, "hostname %s|Admin yang baik!", ServerName);
  68. SendRconCommand(Msg);
  69. }
  70. case 2:
  71. {
  72. format(Msg, 200, "hostname %s|Mancing Time!!", ServerName);
  73. SendRconCommand(Msg);
  74. }
  75. case 3:
  76. {
  77. format(Msg, 200, "hostname %s|Ngk Join Di Mahoin!!!", ServerName);
  78. SendRconCommand(Msg);
  79. }
  80. }
  81. #endif
  82. #if Style == 3
  83. new Msg[128], var = random(4);
  84. switch (var)
  85. {
  86. case 0:
  87. {
  88. format(Msg, 200, "hostname %s|Server Termaho!!", ServerName);
  89. SendRconCommand(Msg);
  90. }
  91. case 1:
  92. {
  93. format(Msg, 200, "hostname %s|Server Ganteng!•", ServerName);
  94. SendRconCommand(Msg);
  95. }
  96. case 2:
  97. {
  98. format(Msg, 200, "hostname %s|www.spiri-gamers.vv.si/forum/", ServerName);
  99. SendRconCommand(Msg);
  100. }
  101. case 3:
  102. {
  103. format(Msg, 200, "hostname %s|Terima Kasih!", ServerName);
  104. SendRconCommand(Msg);
  105. }
  106. }
  107. #endif
  108. }
Advertisement
Add Comment
Please, Sign In to add comment