Raised This Month: $ Target: $400
 0% 

diable sv_restartround


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Styloco
Junior Member
Join Date: Oct 2011
Old 02-20-2012 , 14:33   diable sv_restartround
Reply With Quote #1

hi,

which plugin (sma) do i have to edit to remove server options in amxmodmenu (restartround and pause)

i've invest a great deal in improving my admins, but still one or two find a way to abuse

i already limited access in cmdaccess.ini
__________________
Styloco is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-20-2012 , 14:48   Re: diable sv_restartround
Reply With Quote #2

Install Cvar Utilities and then install this plugin:

PHP Code:
#include <amxmodx>
#include <cvar_util>

public plugin_init() {
    
register_plugin("Disable restart round cvars""0.0.1""Exolent");
    
    
CvarLockValue(get_cvar_pointer("sv_restart"), "0");
    
CvarLockValue(get_cvar_pointer("sv_restartround"), "0");
    
CvarLockValue(get_cvar_pointer("pausable"), "0");

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 02-20-2012 at 15:58. Reason: Added 'pausable' cvar.
Exolent[jNr] is offline
Styloco
Junior Member
Join Date: Oct 2011
Old 02-20-2012 , 14:58   Re: diable sv_restartround
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
Install Cvar Utilities and then install this plugin:

PHP Code:
#include <amxmodx>
#include <cvar_util>

public plugin_init() {
    
register_plugin("Disable restart round cvars""0.0.1""Exolent");
    
    
CvarLockValue(get_cvar_pointer("sv_restart"), "0");
    
CvarLockValue(get_cvar_pointer("sv_restartround"), "0");

ohh i love you..
still: wouldn't it be better (less plugins installed, resources) to edit the .sma which causes it?
I'm a total script noob but if i just remove "get_cvar" or smth like that which leads to the restarting and pausing, the problem would be fixed?
Probably an extra error reported, but still
__________________

Last edited by Styloco; 02-20-2012 at 15:06.
Styloco is offline
Styloco
Junior Member
Join Date: Oct 2011
Old 02-20-2012 , 15:39   Re: diable sv_restartround
Reply With Quote #4

the restart is fixed, however the unpausing pausing not:
console output:


Currently loaded plugins:


You are on LAN or couldn't autodetect your country. Your Language will be set to English.
] rcon amx_plugins
Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.8.1.3746 AMXX Dev Team admin.amxx running
[ 2] CU: amx_cvar Fix 1.0 Arkshine cu_amx_cvar_fix running
[ 3] Admin Commands 1.8.1.3746 AMXX Dev Team admincmd.amxx running
[ 4] Admin Help 1.8.1.3746 AMXX Dev Team adminhelp.amxx running
[ 5] Slots Reservation 1.8.1.3746 AMXX Dev Team adminslots.amxx running
[ 6] Multi-Lingual System 1.8.1.3746 AMXX Dev Team multilingual.am running
[ 7] Menus Front-End 1.8.1.3746 AMXX Dev Team menufront.amxx running
[ 8] Commands Menu 1.8.1.3746 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.8.1.3746 AMXX Dev Team plmenu.amxx running
[ 10] Teleport Menu 1.8.1.3746 AMXX Dev Team telemenu.amxx running
[ 11] Maps Menu 1.8.1.3746 AMXX Dev Team mapsmenu.amxx running
[ 12] Plugin Menu 1.8.1.3746 AMXX Dev Team pluginmenu.amxx running
[ 13] Admin Chat 1.8.1.3746 AMXX Dev Team adminchat.amxx running
[ 14] Anti Flood 1.8.1.3746 AMXX Dev Team antifloo
[122] Disable restart round 0.0.1 Exolent fuckmood.amxx running


"pausable" changed to "0"
"pausable" changed to "1"
mp5_matador exp:: master . GING unpaused the game
"pausable" changed to
__________________
Styloco is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-20-2012 , 15:59   Re: diable sv_restartround
Reply With Quote #5

Added pausable cvar to the plugin.

The reason a plugin is used instead of disabling the amx_cvar/amx_rcon to change it is that there are other ways besides AMXX to change that cvar (ie. rcon).
This plugin will handle all methods.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Styloco
Junior Member
Join Date: Oct 2011
Old 02-20-2012 , 16:21   Re: diable sv_restartround
Reply With Quote #6

Quote:
Originally Posted by Exolent[jNr] View Post
Added pausable cvar to the plugin.

The reason a plugin is used instead of disabling the amx_cvar/amx_rcon to change it is that there are other ways besides AMXX to change that cvar (ie. rcon).
This plugin will handle all methods.
When i hear this, then this seems better yea.
I didn't realize there was the possibility to hack the rcon. I mean, i never tell it to anyone and i'm very carefull on it.
__________________

Last edited by Styloco; 02-20-2012 at 16:22.
Styloco is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-20-2012 , 16:38   Re: diable sv_restartround
Reply With Quote #7

Quote:
Originally Posted by Styloco View Post
When i hear this, then this seems better yea.
I didn't realize there was the possibility to hack the rcon. I mean, i never tell it to anyone and i'm very carefull on it.
You can get rcon if you have access to amx_showrcon.

Anyway, this plugin is a lot easier than modifying amx_cvar and amx_rcon.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Styloco
Junior Member
Join Date: Oct 2011
Old 02-20-2012 , 16:50   Re: diable sv_restartround
Reply With Quote #8

Quote:
Originally Posted by Exolent[jNr] View Post
You can get rcon if you have access to amx_showrcon.

Anyway, this plugin is a lot easier than modifying amx_cvar and amx_rcon.
Thank you for your fast help / response
__________________
Styloco is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode