Raised This Month: $ Target: $400
 0% 

plugin improvement - anti name flood


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 02-02-2009 , 14:01   plugin improvement - anti name flood
Reply With Quote #1

I made this plugin because i didn't find one that suits my needs.

Functionality:

-scans for name change & it increments the counter (ct)
-when ct reaches 3 within 20s form the first change it displays a message
-when ct reaches 4 within 20s from the first change it kicks the player

Although it works, it seems that the print_chat message & the default game message "x changed name to y" appear with a small time delay on my machine.

I would like to know if there are any performance changes that can be made.
I'm still in the process of learning so i may induced some cpu intensive or inefficient code.

Thank you.
Attached Files
File Type: sma Get Plugin or Get Source (name_flood.sma - 950 views - 1.4 KB)
__________________

Last edited by ehha; 02-03-2009 at 19:01.
ehha 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 01:39.


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