Quote:
Originally Posted by SixTwin
Won't this only work if the user just types in "cmd dlfile"? So, if you have "cmd dlfile maps/blahblah.bsp" it wouldn't work?
Code:
</p><p>#include <amxmodx></p><p> </p><p>#define PLUGIN "New Plug-In"</p><p>#define VERSION "1.0"</p><p>#define AUTHOR ""</p><p> </p><p> </p><p>public plugin_init() {</p><p> register_plugin(PLUGIN, VERSION, AUTHOR)</p><p> </p><p> register_concmd("cmd","handle_cmd");</p><p> </p><p> // Add your code here...</p><p>}</p><p> </p><p>public handle_cmd()</p><p>{</p><p> new args[33]</p><p> read_argv(1,args,32)</p><p> </p><p> if(containi(args,"dlfile") != 1)</p><p> {</p><p> &nbs p; // Oh snap!</p><p> }</p><p>}</p><p>
Note: Don't actually try and use the plugin, i was just demonstrating a point.
|
Yes .And i'm sorry for that i can't write a plugin for this because my poor knowleage

,I just wanT somebody Can give me one plugin to kick the guY who type :
cmd dlfile maps/de_dust.bsp( or other maps like de_dust2.bsp/de_toyn.bsp.......) in console in the game .
And then they can't download maps in game.
Thx everybody who have helped me !
God bless You
__________________