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