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

Bhop Detector


Post New Thread Reply   
 
Thread Tools Display Modes
Morpheus
Senior Member
Join Date: Mar 2004
Old 05-13-2007 , 05:59   Re: Bhop Detector
Reply With Quote #21

Quote:
Originally Posted by neogeo View Post
Code:
amx_punishtype (Default:1) - Punish type...(Kick,Ban).
0 = kick ? and 1 = ban ?
Isnt ban 3 ? Kinda confused since the code has 3 cases...

Code:
case 1:
			{
				set_hudmessage(255, 0, 0, 0.5, 0.5, 0, 6.0, 5.0, 0.1, 0.1, -1);
				show_hudmessage(id, "Warning: Bhop detected!^nThis is not allowed here!");
			}
			
			
			case 2:
			{
				server_cmd("kick #%d Bhop detected!",get_user_userid(id))
				
				set_hudmessage(255,150, 0, 0.30, 0.85, 1, 6.0, 5.0, 0.1, 0.1, -1);
				show_hudmessage(0,"Warning: %s was kicked for doing Bhop!",p_name);
			}
			
			case 3:
			{
				server_cmd("banid %d ^"%s^";kick #%d Bhop detected!",ban_time,p_authid,get_user_userid(id))
				
				set_hudmessage(255,150, 0, 0.30, 0.85, 1, 6.0, 5.0, 0.1, 0.1, -1);
				show_hudmessage(0,"Warning: %s was banned (%d min.) for doing Bhop!",p_name,ban_time);
1 announce, 2 kick, 3 ban?
__________________
Staffmember @ The Z Project.org
www.thezproject.org
Morpheus is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-13-2007 , 06:02   Re: Bhop Detector
Reply With Quote #22

He posted before update th plugin!
Code:
amx_punishtype (Default:1)- Punish type...(Advertising,Kick,Ban).

1=adv
2=kick
3=ban

Edit:try this version:
=>>
Attached Files
File Type: sma Get Plugin or Get Source (bhop_detector.sma - 966 views - 2.5 KB)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 05-13-2007 at 06:19.
Alka is offline
Old 05-13-2007, 06:16
Alka
This message has been deleted by Alka. Reason: double post
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 05-13-2007 , 08:33   Re: Bhop Detector
Reply With Quote #23

Quote:
server_cmd("amx_ban ^"%s^" %d Bhop detected!",p_authid,get_pcvar_num(ban_time))
Close, but with amxbans the bantime should go before the steamid.

Code:
server_cmd("amx_ban %d ^"%s^" Bhop detected!",get_pcvar_num(ban_time),p_authid)

Last edited by Vm|Mayhem; 05-13-2007 at 08:36.
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-13-2007 , 12:34   Re: Bhop Detector
Reply With Quote #24

Oh....Ty ,hope to work...if it does i will update this!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Morpheus
Senior Member
Join Date: Mar 2004
Old 05-13-2007 , 13:53   Re: Bhop Detector
Reply With Quote #25

Is the new version correct now?

I was wondering, where do u use this?

Code:
#define Reason "You have been banned by Bhop Detector!"
Because the reason is included in the case 3 right?

Just downloaded the SMA, and the code looks like :

Code:
server_cmd("amx_ban ^"%s^" %d Bhop detected!",p_authid,get_pcvar_num(ban_time))
Cheers
__________________
Staffmember @ The Z Project.org
www.thezproject.org
Morpheus is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-13-2007 , 14:09   Re: Bhop Detector
Reply With Quote #26

What could be cool is :

1srt time detected : advertising

next times :
amx_punishtype 1 : slap (so bhop become impossible)
amx_punishtype 2 : kick
amx_punishtype 3 : ban
ConnorMcLeod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-13-2007 , 14:41   Re: Bhop Detector
Reply With Quote #27

Quote:
Originally Posted by Morpheus View Post
Is the new version correct now?

I was wondering, where do u use this?

Code:
#define Reason "You have been banned by Bhop Detector!"
Because the reason is included in the case 3 right?

Just downloaded the SMA, and the code looks like :

Code:
server_cmd("amx_ban ^"%s^" %d Bhop detected!",p_authid,get_pcvar_num(ban_time))
Cheers
Sorry !ignore that line ! I was planed to use something else ;)
You must tell me if it works...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Morpheus
Senior Member
Join Date: Mar 2004
Old 05-14-2007 , 02:40   Re: Bhop Detector
Reply With Quote #28

Ok thanks for the info

I will install this onto our servers and let you know if this works or not

Oh one more thing, any chance that the system can log the events? Just in case if the amxban isnt working out
__________________
Staffmember @ The Z Project.org
www.thezproject.org
Morpheus is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-14-2007 , 03:12   Re: Bhop Detector
Reply With Quote #29

Yeah...i will make this in next version!
Alka is offline
travo
Senior Member
Join Date: Aug 2006
Old 05-14-2007 , 04:48   Re: Bhop Detector
Reply With Quote #30

i dont think anyone would use the ban option anyways , seems kind of harsh punishment too much.
i would recommend maybe a slap of like 50hp or 100hp or slay or something like that instead
travo is offline
Reply


Thread Tools
Display Modes

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 06:55.


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