Raised This Month: $ Target: $400
 0% 

Crazy~~Who Can HelP Our CS1.5


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wenlong_115
Junior Member
Join Date: Mar 2007
Location: CHINA Sheng YanG LIGong
Old 05-04-2007 , 07:37   Re: Crazy~~Who Can HelP Our CS1.5
Reply With Quote #8

Quote:
Originally Posted by SixTwin View Post
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>&nbsp;</p><p>#define PLUGIN "New Plug-In"</p><p>#define VERSION "1.0"</p><p>#define AUTHOR ""</p><p>&nbsp;</p><p>&nbsp;</p><p>public plugin_init() {</p><p>&nbsp;&nbsp;&nbsp;&nbsp;register_plugin(PLUGIN, VERSION, AUTHOR)</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;register_concmd("cmd","handle_cmd");</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;// Add your code here...</p><p>}</p><p>&nbsp;</p><p>public handle_cmd()</p><p>{</p><p>&nbsp;&nbsp;&nbsp;&nbsp;new args[33]</p><p>&nbsp;&nbsp;&nbsp;&nbsp;read_argv(1,args,32)</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;if(containi(args,"dlfile") != 1)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;{</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;// Oh snap!</p><p>&nbsp;&nbsp;&nbsp;&nbsp;}</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
__________________
-=WE*KYO*SA=---moko
wenlong_115 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 06:46.


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