AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to listen to reply from client commands (https://forums.alliedmods.net/showthread.php?t=276997)

The Gaming Guy 01-01-2016 02:48

How to listen to reply from client commands
 
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.

klippy 01-01-2016 06:41

Re: How to listen to reply from client commands
 
Try giving an example, I am not really sure what's your intention.

fysiks 01-01-2016 06:41

Re: How to listen to reply from client commands
 
Can you give an example of what you are talking about?

redivcram 01-01-2016 07:31

Re: How to listen to reply from client commands
 
https://forums.alliedmods.net/showthread.php?p=236886

The Gaming Guy 01-04-2016 01:09

Re: How to listen to reply from client commands
 
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.

Spirit_12 01-04-2016 02:01

Re: How to listen to reply from client commands
 
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[] = "" 



All times are GMT -4. The time now is 09:30.

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