Advertisement
Guest User

Server IME/PW online

a guest
Jan 20th, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. ->/hostname & /serverpw komandi
  2. 1. /hostname- Smenete go imeto na serverot INGAME, bez /gmx!
  3. 2. /serverpw- Smenete ja lozinkata na serverot INGANE, bez gmx!
  4. Mora da ste RCON admin na serverot za da ja koristite ovaa komanda!
  5. /////////////////////////////
  6. //HOSTNAME//
  7. 1. stavete kaj nekoj #define
  8. #define dialog_IMESERVER 433
  9. 2. Stavete go ova kaj nekoj dialog
  10. else if( dialogid == dialog_IMESERVER )
  11. {
  12. if( !response ) return 1;
  13. if( response )
  14. {
  15. new text[ 128 ];
  16. if( sscanf( inputtext, "s[128]", text ) )
  17. {
  18. SPD( playerid, dialog_IMESERVER, DSI, "Server", "Vnesete go novoto ime na serverot:", "Vo red", "Izlez" );
  19. return 1;
  20. }
  21. new string[128];
  22. format(string, sizeof(string), "hostname %s", text);
  23. SendRconCommand(string);
  24. SendInfoMessage(playerid,"Go promenivte imeto na serverot!");
  25. }
  26.  
  27. }
  28. 3. Ova stavete go kaj nekoja komanda
  29. CMD:hostname(playerid, params[])
  30. {
  31.  
  32. if( !IsPlayerAdmin( playerid ) ) return GRESKA( playerid, "Mora da ste RCON admin." );
  33. SPD( playerid, dialog_IMESERVER, DSI, D_NASLOV, "Vnesete go novoto ime na serverot:", "Vo red", "Izlez" );
  34.  
  35. return 1;
  36. }
  37. ----------------------------------------ZAVRSENO SO HOTNAME
  38. 1.Stavete pod nekoe #define
  39. #define dialog_SERVERPW 434
  40. 2.Stavete go ova kaj nekoj dialog-
  41. else if( dialogid == dialog_SERVERPW )
  42. {
  43. if( !response ) return 1;
  44. if( response )
  45. {
  46. new text[ 128 ];
  47. if( sscanf( inputtext, "s[128]", text ) )
  48. {
  49. SendRconCommand("password 0");
  50. return 1;
  51. }
  52. new string[128];
  53. format(string, sizeof(string), "password %s", text);
  54. SendRconCommand(string);
  55. SendInfoMessage(playerid,"Ja promenivte lozinkata na serverot!");
  56. }
  57.  
  58. }
  59. 3. Kaj nekoja komanda ova
  60. --
  61. CMD:serverpw(playerid, params[])
  62. {
  63.  
  64. if( !IsPlayerAdmin( playerid ) ) return GRESKA( playerid, "Mora da ste RCON admin." );
  65. SPD( playerid, dialog_SERVERPW, DSI, D_NASLOV, "Vnesete nova lozinka na serverot\nAko sakate da nema lozinka, kliknete samo ENTER:", "Vo red", "Izlez" );
  66.  
  67. return 1;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement