Raised This Month: $ Target: $400
 0% 

Detecting scripts and user configs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zamma
Member
Join Date: May 2004
Old 10-23-2007 , 20:45   Detecting scripts and user configs
Reply With Quote #1

Is it possible to read a usersconfig for scripts?

For instance.. if the user has a button bound to say bind "o" "+sparta" and the script spams a load of say commands ect.

Is the +sparta client side? and the say commands sent out the only readables?

Is it possible to read this +sparta command the client used?

Plus can u detect whatever command the player just used (say, +attack) and record it?

thanks in advanced!
Zamma is offline
Old 10-23-2007, 23:06
kp_uparrow
This message has been deleted by kp_uparrow.
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-24-2007 , 06:56   Re: Detecting scripts and user configs
Reply With Quote #3

Quote:
Originally Posted by kp_uparrow View Post
hl commands like +attack cannot be detected
WUT? how about...
Fakemeta:
Code:
if(pev(id, pev_button) & IN_ATTACK))
{
     client_print(id, print_center, "You'r in attack, dumb!");
}
:S
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Old 10-24-2007, 17:24
kp_uparrow
This message has been deleted by kp_uparrow.
Jheshka
Senior Member
Join Date: Dec 2005
Old 10-25-2007 , 00:20   Re: Detecting scripts and user configs
Reply With Quote #5

Quote:
Originally Posted by kp_uparrow View Post
not with register_clcmd
Are you dumb?

He just showed how to detect if the player was attacking...

Code:
if(pev(id, pev_button) & IN_ATTACK)) { //DO STUFF IF PLAYER IS ATTACKING }
__________________
James
Jheshka is offline
Zamma
Member
Join Date: May 2004
Old 10-25-2007 , 15:38   Re: Detecting scripts and user configs
Reply With Quote #6

so no way of reading +scripts
or configs?
Zamma is offline
Old 10-25-2007, 19:04
kp_uparrow
This message has been deleted by kp_uparrow.
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 10-26-2007 , 04:40   Re: Detecting scripts and user configs
Reply With Quote #8

Hey guys why don't you start your own thread about it?

To answer your question, Zamma, yeah you can catch it.

register_clcmd( "+sparta", "hook_sparta" );

I don't know if you can block it though since it's client-sided....but at least you can send him the opposite commands to set him back to normal.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Zamma
Member
Join Date: May 2004
Old 10-26-2007 , 09:39   Re: Detecting scripts and user configs
Reply With Quote #9

Wilson - does that mean you need to know the script name?

What happens for instant if u just want to record whatever client command they use?
If your just checking for scripts...
Zamma is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 10-26-2007 , 13:12   Re: Detecting scripts and user configs
Reply With Quote #10

Code:
public client_command( id ) {    new cmd[64];    read_argv( 0, cmd, 63 );    // the string 'cmd' is now the command the client sent }

Obviously it's not gonna catch certain commands that are strictly client-side and don't get sent to the server.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
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 01:19.


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