Raised This Month: $ Target: $400
 0% 

[HELP] Block client cmd command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
extream87
Senior Member
Join Date: Aug 2011
Old 03-25-2014 , 16:57   [HELP] Block client cmd command
#1

I want block some command with word "STEAM_0:1:" in console.

If i write in console xxxx STEAM_0:1: or STEAM_0:1: xxxx the player is kicked from the server.
(xxxx is some command).

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "Block Cmd Word" #define VERSION "1.0" #define AUTHOR "extream87" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("//cmd word// STEAM_0:1:", "cmdcommand"); } public cmdcommand(id) {     client_print(id,print_chat,"[AMXX] Command not allowed on this server!")     set_task(2.0, "getout", id) public getout(id) {     client_cmd(id, "quit") }

Last edited by extream87; 03-25-2014 at 17:01.
extream87 is offline
 



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 05:56.


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