Raised This Month: $51 Target: $400
 12% 

Blocking fullupdate commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 12-05-2005 , 19:56   Blocking fullupdate commands
Reply With Quote #1

Hi, im wondering if its possible for someone to block the command fullupdate. Today in my server i had someone tell me that 2 ppl were trying to crash my server (scoutzknivez 24/7 one) Anyways, i asked him how they were trying to crash it and he told me they bind the command fullupdate to a key and repeatedly pressing it. Well i didnt know to believe him or not.. but then sure enough 5 min later it crashes, everyone rejoined, including the 2 he pointed out, and again 5 min later crashes... so is it possible for someone to make a plugin that blocks this command? And maybe even punish's ppl you attempt to to do it? And if its just a simple thing i can add to a .cfg file or something plz tell me
__________________
pulpy is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-05-2005 , 20:55  
Reply With Quote #2

Search on "fullupdate". It was the 6th result for me.
Brad is offline
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 12-05-2005 , 21:02  
Reply With Quote #3

oh heh, thx im just doing hw, so i didnt tihnk this was made, i'll search
__________________
pulpy is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 12-06-2005 , 02:40  
Reply With Quote #4

A quickly made this 1
It won't punish people for using the command, but it will sucessfully block it.

You can insert it in any plugin to block the command

Code:
#include <amxmodx> #include <amxmisc> public plugin_init(){     register_plugin("FullUpdateBlocker", "0.1", "MaximusBrood[NL]")     register_concmd("fullupdate", "block") } public block(id) {     return PLUGIN_HANDLED }
MaximusBrood is offline
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 12-06-2005 , 03:02  
Reply With Quote #5

well i found the one brad was talking bout, but if it dusnt work, i'll give this a shot, thx +karma just for taking the time ;)

Edit: Okay i would give karma, but it seems as tho i already have earlier today haha
__________________
pulpy is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-06-2005 , 06:08  
Reply With Quote #6

@puply:
Quote:
Originally Posted by pulpy
well i found the one brad was talking bout, but if it dusnt work
Did you place it at the top of your plugins.ini file? Just making sure. It needs to go BEFORE other plugins.

Quote:
Originally Posted by pulpy
+karma just for taking the time ;)
Apparently he didn't take enough time.

@MaximusBrood:
Maximus, see what I posted above you? The plugin referenced consists of this code:

Code:
/* AMX Mod X script. * *   fullupdate Blocker (fullupdate_blocker.sma) *    *   This plugin should be installed above all plugins you want *   the resetHUD event caused by the client command "fullupdate" * */ #include <amxmodx> public plugin_init() {     register_plugin("fullupdate Blocker","1.0","JTP10181")     register_clcmd("fullupdate","fullupdate") } public fullupdate(id) {     return PLUGIN_HANDLED }
If this plugin didn't work for pulpy, then your's won't either since the code is essentially the same.
Brad is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 12-06-2005 , 07:27  
Reply With Quote #7

I didn't check the code you mentioned, so I didn't know if it was the same

Anyway, I forgot to say, you have to load it before all other plugins
(Brat said it already, I'm saying it again )
MaximusBrood is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-06-2005 , 07:57  
Reply With Quote #8

Quote:
Originally Posted by MaximusBrood
(Brat said it already, I'm saying it again )
Freudian slip?
Brad is offline
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 12-08-2005 , 03:09  
Reply With Quote #9

alright when u say load it before all the other plugins do u mean like this?

Quote:
; AMX Mod X plugins

fullupdate_blocker.amxx
; Admin Base - Always one has to be activated

admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management

; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)

; Chat / Messages
std_admin_color_chat.amxx
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands

; Map related
nextmap.amxx ; displays next map in mapcycle
;mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map

; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands

; Counter-Strike
restmenu.amxx ; restrict weapons menu
statsx.amxx ; stats on death or round end (CSX Module required!)
miscstats.amxx ; bunch of events announcement for Counter-Strike
stats_logging.amxx ; weapons stats logging (CSX Module required!)


; Custom - Add 3rd party plugins here
amx_super.amxx
gag.amxx
voicecomm_ban.amxx
deadchat.amxx
psycholisten.amxx
hpk.amxx
stats_display_ig.amxx
ptb_1.7b9.2.amxx
screenshot.amxx
spawnprotection.amxx
info_motd_ig.amxx
Or something similar.
__________________
pulpy is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 12-08-2005 , 03:46  
Reply With Quote #10

Yep
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood 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 17:30.


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