HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1.  
  2. /*| AMXMODX script. |
  3. * =====================
  4. * The Simple No Rcon Plugin
  5. *
  6. * |Version: 0.1
  7. *
  8. * Magyarosította Servercfg
  9.  
  10. #include <amxmodx>
  11. #include <amxmisc>
  12.  
  13. public amx_commands(id,level,cid) {
  14. if (!cmd_access(id,level,cid,1))
  15. return PLUGIN_HANDLED
  16.  
  17. if (read_argc() > 1) {
  18. new command[32], variable[32]
  19. read_argv(0,command,31)
  20. read_argv(1,variable,31)
  21. set_cvar_string(command,variable)
  22. console_print(id,"^"%s^" beállitottak ^"%s^"",command,variable)
  23. return PLUGIN_HANDLED
  24. }
  25.  
  26. new command[32], variable[32]
  27. read_argv(0,command,31)
  28. get_cvar_string(command,variable,31)
  29. console_print(id,"^"%s^" beállitjak ^"%s^"",command,variable)
  30. return PLUGIN_CONTINUE
  31. }
  32.  
  33. public amx_exec(id,level,cid) {
  34. if (!cmd_access(id,level,cid,1))
  35. return PLUGIN_HANDLED
  36.  
  37. new cfg[32]
  38. read_argv(1,cfg,31)
  39. server_cmd("exec ",cfg)
  40. return PLUGIN_HANDLED
  41. }
  42.  
  43. public plugin_init(){
  44. register_plugin("No Rcon","0.1","ToXIC")
  45. register_clcmd("sv_restart","amx_commands",ADMIN_LEVEL_A,"<#seconds>")
  46. register_clcmd("sv_restartround","amx_commands",ADMIN_LEVEL_A,"<#seconds>")
  47. register_clcmd("sv_alltalk","amx_commands",ADMIN_LEVEL_A,"<1-on/0-off>")
  48. register_clcmd("sv_gravity","amx_commands",ADMIN_LEVEL_A,"<#> (default=800)")
  49. register_clcmd("mp_timelimit","amx_commands",ADMIN_LEVEL_A,"<#minutes>")
  50. register_clcmd("mp_roundtime","amx_commands",ADMIN_LEVEL_A,"<#minutes>")
  51. register_clcmd("mp_buytime","amx_commands",ADMIN_LEVEL_A,"<#minutes> (for seconds use .5 etc.)")
  52. register_clcmd("mp_freezetime","amx_commands",ADMIN_LEVEL_A,"<#seconds>")
  53. register_clcmd("mp_c4timer","amx_commands",ADMIN_LEVEL_A,"<#seconds> - CS Command")
  54. register_clcmd("mp_maxrounds","amx_commands",ADMIN_LEVEL_A,"<#rounds>")
  55. register_clcmd("mp_forcecamera","amx_commands",ADMIN_LEVEL_A,"<2-team only/1-any player/0-off>")
  56. register_clcmd("mp_forcechasecam","amx_commands",ADMIN_LEVEL_A,"<2-team only/1-any player/0-off>")
  57. register_clcmd("mp_fadetoblack","amx_commands",ADMIN_LEVEL_A,"<1-on/0-off> - CS Command")
  58. register_clcmd("mp_friendlyfire","amx_commands",ADMIN_LEVEL_A,"<1-on/0-off>")
  59. register_clcmd("mp_limitteams","amx_commands",ADMIN_LEVEL_A,"<# of players 1 team can have over the other/0-off>")
  60. register_clcmd("mp_tkpunish","amx_commands",ADMIN_LEVEL_A,"<1-on/0-off>")
  61. register_clcmd("mp_hostagepenalty","amx_commands",ADMIN_LEVEL_A,"<# of hostages killed before kicking player/0-off> - CS Command")
  62. register_clcmd("hostname","amx_commands",ADMIN_LEVEL_A,"<changes server name>")
  63. register_clcmd("allow_spectators","amx_commands",ADMIN_LEVEL_A,"<# of specators to allow>")
  64. register_clcmd("exec","amx_exec",ADMIN_LEVEL_A,"<execute cfg>")
  65.  
  66. return PLUGIN_CONTINUE
  67. }
  68.  
  69.