changed header and version info

This commit is contained in:
Felix Geyer
2004-02-01 18:45:44 +00:00
parent 9214a349a4
commit 51fe5a4822
22 changed files with 132 additions and 258 deletions

View File

@@ -1,10 +1,9 @@
/* AMX Mod script.
*
* (c) 2003, OLO
* This file is provided as is (no warranties).
* (c) 2002-2004, OLO
* modified by BAILOPAN,Manip,PM,SniperBeamer
*
* Cvar:
* amx_flood_time <time in sec.> - set frequency of chating
* This file is provided as is (no warranties).
*/
#include <amxmod>
@@ -13,7 +12,7 @@ new Float:g_Flooding[33]
public plugin_init()
{
register_plugin("Anti Flood","0.9","default")
register_plugin("Anti Flood","0.1","default")
register_clcmd("say","chkFlood")
register_clcmd("say_team","chkFlood")
register_cvar("amx_flood_time","0.75")
@@ -22,20 +21,20 @@ public plugin_init()
public chkFlood(id)
{
new Float:maxChat = get_cvar_float("amx_flood_time")
if ( maxChat )
{
new Float:nexTime = get_gametime()
if ( g_Flooding[id] > nexTime )
{
client_print( id , print_notify , "** Stop flooding the server!" )
g_Flooding[ id ] = nexTime + maxChat + 3.0
return PLUGIN_HANDLED
}
g_Flooding[id] = nexTime + maxChat
}
return PLUGIN_CONTINUE
}