An example of an antispam check
I've seen a few people still struggling with this, so here is my participation.
This simple commented example script shows you how to avoid command/function spamming. I wrote this for beginners, so it's heavily commented. Hope it helps!
Code
Yours sincerely Impact |
Re: An example of an antispam check
thx, it's usefull
|
Re: An example of an antispam check
Its cool but what about userids ? You should use userids instead of client or there should be a check that it's the same client we're communicating with.
http://wiki.alliedmods.net/Introduct...Entity_Indexes |
Re: An example of an antispam check
There is is no need for it, the time will be purged if the client leaves the server.
This is just an simple example to get you started, for example an client can trick this by rejoining the server. Yours sincerely Impact |
Re: An example of an antispam check
But if he joins again he can spam again.
|
Re: An example of an antispam check
The userid will change if the client reconnects. If the value must be maintained, it can be thrown into a clientpref, array, steamid trie, etc.
|
Re: An example of an antispam check
steamid trie? Give an example.
Array? Is there a dynamic allocated array?? |
Re: An example of an antispam check
Quote:
adt_trie is for tries. Take a look at the API page and you'll get more information. |
Re: An example of an antispam check
Thanks, I've looked for something like that :)
|
All times are GMT -4. The time now is 12:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.