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

How to listen to reply from client commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Gaming Guy
Junior Member
Join Date: Dec 2015
Old 01-01-2016 , 02:48   How to listen to reply from client commands
Reply With Quote #1

Is there a way to listen to client commands. Like a amxx plugin sent a command which is expected to receive a reply from player console , how do we get it to the plugin and check whether it matches the expected reply.

Last edited by The Gaming Guy; 01-01-2016 at 02:48.
The Gaming Guy is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-01-2016 , 06:41   Re: How to listen to reply from client commands
Reply With Quote #2

Try giving an example, I am not really sure what's your intention.
klippy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2016 , 06:41   Re: How to listen to reply from client commands
Reply With Quote #3

Can you give an example of what you are talking about?
__________________
fysiks is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 01-01-2016 , 07:31   Re: How to listen to reply from client commands
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?p=236886
redivcram is offline
The Gaming Guy
Junior Member
Join Date: Dec 2015
Old 01-04-2016 , 01:09   Re: How to listen to reply from client commands
Reply With Quote #5

Like if I send the player a command , say cl_updaterate the console reply would be say 50, So how do I get that "50" to my plugin and then compare it with my expected reply , say "30-80". Else kicks and bans the player through amx bans.
The Gaming Guy is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-04-2016 , 02:01   Re: How to listen to reply from client commands
Reply With Quote #6

You can check a client cvar value with query_client_cvar.

PHP Code:
Description

  query_client_cvar 
Dispatches a client cvar query  

Syntax   
  query_client_cvar 
id, const cvar[], const resultFunc[], paramlen=0, const params[] = "" 
__________________
Spirit_12 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 14:47.


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