Raised This Month: $51 Target: $400
 12% 

Spam Kick v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 01-18-2010 , 21:39   Re: Spam Kick v1.2
Reply With Quote #11

Quote:
Originally Posted by fezh View Post
PHP Code:
#define k1 emessage_begin(MSG_ONE, SVC_DISCONNECT, _, u);
#define k2 ewrite_string( message_kick ); 
#define k3 emessage_end(); 
Can I ask why did you add those horrible/useless defines?

PHP Code:
new const message_kick[] = "You cant spam here";

new const 
w[] = "[AMXX] the fourth spam will be kicked, you are  ";
new const 
y[] = "[AMXX] the third spam will be kicked, you are "
I think you can/should use the multilingual system for that.
i can changed the defines for this...
PHP Code:
server_cmd("kick #%d ^"You cant spam here^""get_user_userid(id) ) 
and the const i can changed too, but is to shrink the code.
g_often is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-19-2010 , 08:56   Re: Spam Kick v1.2
Reply With Quote #12

The code is so fucking confusing. Everything is 'k' 't' 'f' 'h' 'v' 'w''
Lol
01101101 is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 01-19-2010 , 09:41   Re: Spam Kick v1.2
Reply With Quote #13

Quote:
Originally Posted by 01101101 View Post
The code is so fucking confusing. Everything is 'k' 't' 'f' 'h' 'v' 'w''
Lol
ready Lol
g_often is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 01-20-2010 , 15:53   Re: Spam Kick v1.2
Reply With Quote #14

There are still alot of optimizations to deal with.
__________________
I am out of order!
grimvh2 is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 01-21-2010 , 00:04   Re: Spam Kick v1.2
Reply With Quote #15

Quote:
Originally Posted by grimvh2 View Post
There are still alot of optimizations to deal with.
customize it a bit, you could help me?
g_often is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-21-2010 , 11:30   Re: Spam Kick v1.2
Reply With Quote #16

Use this sentences:

Quote:
You will be kicked on the fourth warning, you are warned %s times.
If you spam one more time you will be kicked!
You cannot spam here!
And maybe ML?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-21-2010 , 11:36   Re: Spam Kick v1.2
Reply With Quote #17

Code:
if( file ) fclose( file )

Remove if() here, and check if file is opened right after using fopen native, not after while( ) loop
__________________
xPaw is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 01-21-2010 , 12:22   Re: Spam Kick v1.2
Reply With Quote #18

Use switch statements instead of if and else if.

Code smarter so you can reduce your lines.
__________________
I am out of order!
grimvh2 is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 01-22-2010 , 01:34   Re: Spam Kick v1.2
Reply With Quote #19

Quote:
Originally Posted by crazyeffect View Post
Use this sentences:

You will be kicked on the fourth warning, you are warned %s times.
If you spam one more time you will be kicked!
You cannot spam here!

And maybe ML?

Ready, thnks.

and.. xPaw:
i don't understend very well, can you see?, and thnks.
g_often is offline
nuked
Member
Join Date: Oct 2009
Old 01-23-2010 , 01:52   Re: Spam Kick v1.2
Reply With Quote #20

FINALLY!

I will uses it straight away on my servers!!!!!

I tried the anticommerce plugin previously but - sorry to say this - it suxx..

One thing I don't like is the lack of admin immunity... An admin have to be able to advertise for our servers and homepage....

But besides that this plugin do the job. Good job so far.

Last edited by nuked; 01-23-2010 at 02:17. Reason: Added opinion
nuked is offline
Send a message via ICQ to nuked Send a message via MSN to nuked
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 14:34.


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