Guest User

Host-Name | Map-Name | GM - Change

a guest
Nov 30th, 2013
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.10 KB | None | 0 0
  1. /* Hi guys. There r no credits and client messages so you just have to change "change me" with your Host-Name | Map Name | GM.
  2. Don't use quotations "". For example: "YoUnG Gamers Gaming >|< World Of Gamers". Quotations = Fail
  3. Use YoUnG Gamers Gaming >|< World Of Gamers without quotations.
  4. Don't remove the quotation that is infront of [change me]
  5. ===============================================================================================================================
  6. ============================================== :) HAVE FUN (: =================================================================
  7. =============================================================================================================================== */
  8.  
  9. #include <a_samp>
  10. public OnFilterScriptInit()
  11. {
  12. SetTimer("mapname",500,1); // [Timer] - Don't play with this if you don't know about it.
  13. SetTimer("hostname",500,1); // [Timer] - Don't play with this if you don't know about it.
  14. SetTimer("gamemode",500,1); // [Timer] - Don't play with this if you don't know about it.
  15. return 1;
  16. }
  17. forward mapname();
  18. public mapname()
  19. {
  20.    new var = random(5);  // There r 5 cases below from 0-4 [Total = 5]. If you want more names change 5 to the number of cases
  21.    switch (var)
  22.    {
  23.      case 0: SendRconCommand("mapname change me"); // Change the "change me" with your map-name.
  24.      case 1: SendRconCommand("mapname change me"); // Change the "change me" with your map-name.
  25.      case 2: SendRconCommand("mapname change me"); // Change the "change me" with your map-name.
  26.      case 3: SendRconCommand("mapname change me"); // Change the "change me" with your map-name.
  27.      case 4: SendRconCommand("mapname change me"); // Change the "change me" with your map-name.
  28.    }
  29. }
  30. forward hostname();
  31. public hostname()
  32. {
  33.    new var = random(4); // There r 4 cases below from 0-3 [Total = 4]. If you want more names change 4 to the number of cases
  34.    switch (var)
  35.    {
  36.      case 0: SendRconCommand("hostname change me");  // Change the "change me" with your host name
  37.      case 1: SendRconCommand("hostname change me"); // Change the "change me" with your host name
  38.      case 2: SendRconCommand("hostname change me"); // Change the "change me" with your host name
  39.      case 3: SendRconCommand("hostname change me"); // Change the "change me" with your host name
  40.  
  41.    }
  42. }
  43. forward gamemode();
  44. public gamemode()
  45. {
  46.    new var = random(6); // There r 5 cases below from 0-5 [Total = 6]. If you want more names change 6 to the number of cases
  47.    switch (var)
  48.    {
  49.      case 0: SendRconCommand("gamemodetext change me"); // Change the "change me" with your own Mode
  50.      case 1: SendRconCommand("gamemodetext change me");  // Change the "change me" with your Mode
  51.      case 2: SendRconCommand("gamemodetext change me");  // Change the "change me" with your own Mode
  52.      case 3: SendRconCommand("gamemodetext change me");  // Change the "change me" with your Mode
  53.      case 4: SendRconCommand("gamemodetext change me");  // Change the "change me" with your Mode.
  54.      case 5: SendRconCommand("gamemodetext change me"); // Change the "change me" with your Mode
  55.    }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment