Raised This Month: $7 Target: $400
 1% 

get_clcmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 04-05-2019 , 01:20   get_clcmd
Reply With Quote #1

as the title mentions this topic is going to be about get_clcmd

so as i said before i have a hacking problem with my server
https://forums.alliedmods.net/showthread.php?t=315254

and i am trying to work on a solution for that and i think that get_clcmd should help

if anyone could show me how do you actually use it inside a public

many thanks would be given

PHP Code:
if(get_clcmd(id,"kk_aim_silent",32));
{
    
server_cmd("kick #%d Kicked From The Server For Hacking"get_user_userid(id))
    return 
1;
}

this is how i tried using it and obviously it doesn't work

amx wiki says it should be like this
PHP Code:
get_clcmd(indexcommand[], len1, &flagsinfo[], len2flag, &bool:info_ml false); 
but i don't really understand what i am reading here

Last edited by Ynet; 04-05-2019 at 01:21.
Ynet is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-05-2019 , 01:47   Re: get_clcmd
Reply With Quote #2

That function is for getting command created by plugins (at least), not settings that client's use locally. Hacks are client-side only and you will never be able to detect their commands directly via a plugin.
__________________
fysiks is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-19-2019 , 12:57   Re: get_clcmd
Reply With Quote #3

https://www.amxmodx.org/api/cvars/query_client_cvar

I think is possibile if you know the Hack variable they are using you can detect and ban them.

Last edited by Craxor; 04-19-2019 at 12:58.
Craxor is offline
Send a message via ICQ to Craxor
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 04-20-2019 , 13:05   Re: get_clcmd
Reply With Quote #4

"Hacking" > "Cheating"

PHP Code:
query_client_cvarid"kzh_bhop""idunno" ); 
In principle, a particular ID must be checked to identify if the player is using something illegal
PHP Code:
client_cmd (id"kz_blabla:" 
I have not dealt with it for a long time, so give me a few days to see what's new
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
JocAnis
Veteran Member
Join Date: Jun 2010
Old 04-20-2019 , 16:52   Re: get_clcmd
Reply With Quote #5

if cheater rename his cheat-command to: catchme_123 you must predict that name...good luck with it
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 04-24-2019 , 19:14   Re: get_clcmd
Reply With Quote #6

Quote:
Originally Posted by Fuck For Fun View Post
"Hacking" > "Cheating"

PHP Code:
query_client_cvarid"kzh_bhop""idunno" ); 
In principle, a particular ID must be checked to identify if the player is using something illegal
PHP Code:
client_cmd (id"kz_blabla:" 
I have not dealt with it for a long time, so give me a few days to see what's new
As far as im aware most cheats don't register their 'cvars' with the client and instead let players change their settings via cfg file or a custom menu (completely bypassing the client and making these cvars not exist)

Thats my understanding anyways.. I could be wrong, but this is the 'answer' I think the OP needs.
__________________
+|- KARMA Respectively

HLM 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:39.


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