AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SCREENSHOTS F12 STEAM (https://forums.alliedmods.net/showthread.php?t=155526)

Gollumrings 04-23-2011 09:46

SCREENSHOTS F12 STEAM
 
Hello
I have a question!
As you know people have implemented a function to steam "screenshots", press F12 if you take a picture.
I can do so client-server command to execute F12 (I mean that screenshot made ​​by steam)
Is it possible? or DLL is required.
Thank you very much

bibu 04-23-2011 09:51

Re: SCREENSHOTS F12 STEAM
 
Impossible.

Gollumrings 04-24-2011 08:29

Re: SCREENSHOTS F12 STEAM
 
Ok so I understand that this is not possible with the screenshot.
I have another question.
How can so that you know some details about a player:
rates
cl_updaterate
cl_cmdrate
fps_max
gamma
lightgamma
texgamma
ex_interp 0.1
developer
etc. ..
As far as I know but it works get_user_info function be used only for "rate"
the other does not.
We have seen that have used this function but I failed: query_client_cvar
All I want is when you in chat / check to appear in a hud message with all the settings you set the player:

rate: 25000
cl_updaterate: 50
cl_cmd: 100
fps_max: 75
gamma 2
lightgamma: 2.5
texgamma: 2
ex_interp: 0.1
developer: 0

An example ..
If you can show me an example ..
Thanks a lot

Arkshine 04-24-2011 08:31

Re: SCREENSHOTS F12 STEAM
 
There are already plugins for that, please search and query_client_cvar works fine.

Gollumrings 04-24-2011 08:54

Re: SCREENSHOTS F12 STEAM
 
You mean it? works but from what I see is a problem as it makes him appear in HUD?
I tried something but the messages should not appear as ..

Quote:

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
register_plugin("TEST","1.0","KG")
register_concmd("amxx_check","checkPlayer",AD MIN_BAN,"<name> - info. players")
}

public checkPlayer(id, lvl, cid)
{
if( ! ( cmd_access( id , lvl , cid , 2 ) ) )
return PLUGIN_HANDLED

new arg[32];

read_argv(1 , arg , 31)

new player = cmd_target( id, arg, 1)

if( !player)
return PLUGIN_HANDLED

query_client_cvar(player, "rate", "cvar_result")
query_client_cvar(player, "fps_max", "cvar_result")
query_client_cvar(player, "cl_cmdrate", "cvar_result")

return PLUGIN_CONTINUE
}

public cvar_result(id, const cvar[], const value[])
{
// Hud
set_hudmessage(200, 100, 0, 0.01, 0.50, 0, 0.0, 5.0)
show_hudmessage(id, "rate is: %s", value)

// Console
console_print(id, "rate is: %s", value)
return PLUGIN_HANDLED
}

nikhilgupta345 04-24-2011 11:05

Re: SCREENSHOTS F12 STEAM
 
That would make 3 messages come up, and they would all say rate is: %s

id is the index of the player whose cvar info you are getting, not the person who sent the command.

Also, not sure if this makes a tremendous difference, but if( !player ) -> if( !is_user_connected( player ) );

Gollumrings 04-24-2011 11:19

Re: SCREENSHOTS F12 STEAM
 
And how could I make it work? all appear as one other one
rate: 25000
fps_max: 75
cl_cmdrate: 100

fysiks 04-24-2011 11:22

Re: SCREENSHOTS F12 STEAM
 
You don't need to know their rates because you can force them to use your own with:

Code:

sv_maxupdaterate
sv_minupdaterate
sv_maxrate
sv_minrate

FYI

Gollumrings 04-24-2011 11:28

Re: SCREENSHOTS F12 STEAM
 
Yes I understand, but I want to check to see what players play settings and those settings appear in the HUD:
rate: .....
fps_max ...
I saw something that is possible because I saw a server that, but that source is not public.


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

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