Raised This Month: $ Target: $400
 0% 

Block Commands Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 02-25-2007 , 19:51   Block Commands Help
Reply With Quote #1

I searched around and was looking how you would block commands...I don't know exactly how to go about it now.

They were blocking Fullupdate with
Code:
client_command("fullupdate", "blockCommand");
I tryed to extend it with

Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Command Restrictor"
#define VERSION "1.0"
#define AUTHOR "[email protected]"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_concmd("model", "blockCommand");
	register_concmd("retry", "blockCommand");
	register_concmd("reconnect", "blockCommand");
	register_concmd("cl_backspeed", "blockCommand");
	register_concmd("cl_sidespeed", "blockCommand");
	register_concmd("cl_forwardspeed", "blockCommand");
}

public blockCommand(id) {
	client_print(id, print_chat, "You can't use that command");
	return PLUGIN_CONTINUE;
}
This doesn't even load right, it doesn't work.. so How do you go about doing this?
Styles is offline
Send a message via AIM to Styles
 



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 00:38.


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