This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[REQ] Spin hack detector/banner


Post New Thread Reply   
 
Thread Tools Display Modes
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-08-2008 , 05:51   Re: [REQ] Spin hack detector/banner
Reply With Quote #11

The one he originally posted does ban by SteamID.
bl4nk is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-08-2008 , 07:57   Re: [REQ] Spin hack detector/banner
Reply With Quote #12

BanClient(client,0,BANFLAG_IP
It's ban user IP
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-08-2008 , 08:13   Re: [REQ] Spin hack detector/banner
Reply With Quote #13

Sorry, missed that. Change it to BANFLAG_AUTHID.
bl4nk is offline
narutopgm
Member
Join Date: Sep 2006
Old 04-08-2008 , 10:41   Re: [REQ] Spin hack detector/banner
Reply With Quote #14

thx man
narutopgm is offline
xJonny
Junior Member
Join Date: May 2007
Location: England
Old 04-19-2008 , 16:35   Re: [REQ] Spin hack detector/banner
Reply With Quote #15

Ah. All was working excellently, but I checked error logs. One day there was a 44MB error log, consisting mainly of errors by this plugin.

It basically had lots of errors like these
Code:
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:16: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:16: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:16: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:44:17: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 04/05/2008 - 15:44:17: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:44:17: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
but also with different client numbers, e.g.
Code:
L 04/05/2008 - 15:51:11: [SM] Native "IsPlayerAlive" reported: Client 12 is not in game
L 04/05/2008 - 15:51:11: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:51:11: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:51:11: [SM] Native "IsPlayerAlive" reported: Client 12 is not in game
L 04/05/2008 - 15:51:11: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:51:11: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:51:11: [SM] Native "IsPlayerAlive" reported: Client 12 is not in game
L 04/05/2008 - 15:51:11: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:51:11: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:51:11: [SM] Native "IsPlayerAlive" reported: Client 12 is not in game
L 04/05/2008 - 15:51:11: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:51:11: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 04/05/2008 - 15:51:11: [SM] Native "IsPlayerAlive" reported: Client 12 is not in game
L 04/05/2008 - 15:51:11: [SM] Debug mode is not enabled for "speedhackdetector.smx"
L 04/05/2008 - 15:51:11: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
Is there anything that can prevent this from happening?
xJonny is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-20-2008 , 06:11   Re: [REQ] Spin hack detector/banner
Reply With Quote #16

in plugin, there are 2 lines like this : if(IsPlayerAlive(i))
replace that lines with : if(IsPlayerAlive(i) && IsClientInGame(i))
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Fredd
Veteran Member
Join Date: Jul 2007
Old 04-20-2008 , 13:53   Re: [REQ] Spin hack detector/banner
Reply With Quote #17

shouldn't it be like this ?
Code:
if(IsClientInGame (i) && IsPlayerAlive(i))
it will check if the user alive before it goes on the next condition which is in game..is if the in game conidtion is first and it returns false it will stop and it will go to your return value...thats how i know it works, someone correct me if im wrong..
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-20-2008 , 14:10   Re: [REQ] Spin hack detector/banner
Reply With Quote #18

It should actually be like this:
PHP Code:
if (IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i)) 
That way if the client isn't connected it won't cause problems when it checks to see if they're in game.
bl4nk is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 04-20-2008 , 14:11   Re: [REQ] Spin hack detector/banner
Reply With Quote #19

if player is alive, that not means is also connected ?
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-20-2008 , 14:12   Re: [REQ] Spin hack detector/banner
Reply With Quote #20

But what if they're not connected or in-game? How can it check if they're alive then? It can't and will produce an error in the server console.
bl4nk 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 18:16.


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