AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_user_info (https://forums.alliedmods.net/showthread.php?t=9514)

Damocles 01-21-2005 17:13

get_user_info
 
Hey All,

Im in the process of writing a plugin that will track the rate value that clients are using in a CS game.

The plugin will basically allow the admin to view all of the client rate values and automatically inform the admin if a users rates are below a specified value.

Im trying to use the get_user_info function to fetch:

rate
cl_rate
cl_cmdrate
cl_updaterate

similar to this code...

Code:
get_user_info(id, "rate", rate, 31) get_user_info(id, "cl_rate", rate, 31) get_user_info(id, "cl_cmdrate", rate, 31)

The only problem is the code fetches no values for cl_rate and cl_cmdrate

I can get rate and cl_updaterate, but the other two dont return a value. Ive tried a number of things and nothing works, can anyone give me some code which would return these values ??? Or tell me where im going wrong

Thanks in advance for any help :)

Damocles.

Revelation 01-21-2005 19:29

you cant get them, you can only get the variables which are displayed when you type "rcon user idnumber" in the console of your server. There may be some way, amx_execclient or something, but im not too sure. Ive been looking for a plugin like yours, was gonna write one. could i see your .sma file please? :) thanks

BlueRaja 01-21-2005 23:49

CS doesn't use cl_rate anyways


All times are GMT -4. The time now is 19:20.

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