Raised This Month: $ Target: $400
 0% 

scripting help:anti-Flood for my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
drcopy_wawe
Junior Member
Join Date: Dec 2006
Old 01-13-2007 , 21:57   scripting help:anti-Flood for my plugin
Reply With Quote #1

lets say...
//////////////////////////
bla2~
public plugin_init()
{
register_clcmd("say /restart","recmd")
}

public recmd()
{
server_cmd("sv_restart 1")
}
////////////////////////////

When the client say /restart,the server will sv_restart 1.
If he say /restart again right after that,the server will not sv_restart 1,
as he need to wait for 10 sec before saying /restart again.
I want to prevent flooding.

How to make the plugin works like this?
any1 who is generous enough pls help.
tq in adv
drcopy_wawe 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 22:28.


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