AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Anti flood need help (https://forums.alliedmods.net/showthread.php?t=92677)

biscuit628 05-18-2009 06:22

Anti flood need help
 
halo i am trying to script a anti flood plugin,but i need some help
PHP Code:

public plugin_init()
{
    
register_clcmd ("say""hook_say")
}

public 
hook_say(id)
{
    
read_args (message191)
    
remove_quotes (message)
        
    if(
equal (message,oldmessage))         //<<<<<here is not work
    
{
    
client_print(id,print_chat,"Don't flood the server")
        return 
PLUGIN_HANDLED
    
}
    
//.............
    
oldmessage message
    format 
(message191"%s")
    
sendMessage (colorisAlive)    // Sends the colored message



biscuit628 05-18-2009 06:33

Re: Anti flood need help
 
Quote:

Originally Posted by -=hunter=- (Post 829801)
How about addons\amxmodx\configs\amxx.cfg?

Code:

// Set in seconds how fast players can chat (chat-flood protection)
//
// Default value: 0.75
amx_flood_time 0.75

Lang-file: addons\amxmodx\data\lang\antiflood.txt

i have already set to 0.1
but it's not enough:nono:


All times are GMT -4. The time now is 01:25.

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