Raised This Month: $ Target: $400
 0% 

Anti flood need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 05-18-2009 , 06:22   Anti flood need help
Reply With Quote #1

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

__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!

Last edited by biscuit628; 05-18-2009 at 06:26.
biscuit628 is offline
Old 05-18-2009, 06:30
-=hunter=-
This message has been deleted by -=hunter=-.
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 05-18-2009 , 06:33   Re: Anti flood need help
Reply With Quote #3

Quote:
Originally Posted by -=hunter=- View Post
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
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 is offline
Reply



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 01:25.


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