|
Author
|
Message
|
|
Junior Member
Join Date: May 2005
Location: Sweden
|

05-09-2005
, 02:40
Getting cvars and getting spectating target.
|
#1
|
Hi, Im quite new on the amxx modding scene, I aim mostly at modding counterstrike. My latest experience in modding was in quake 1 where I did a lot of custom stuff like complete sets of new weapons, rules, models and the whole shabang.
I most confess I got stuck on some very basic stuff that I cant figure out how to solve, I guess it is probably very easy if you know how, it usually is but in the beginning you have to get a "feel" for the new enviroment.
I have tried searching the forums and checking various tutorials and checking other peoples plugins but the answer still eludes me.
The problem:
1. I need to read a players cvars, more specifically, I need to check if a user have reverse mouse on or not. This is in the cvar m_pitch which is a float. If it is negative then the user has reverse mouse on. I need to check this in order to properly set it back later so I donīt mess the players setting up. I have not found a way to check users cvars in general.
2. I need to get hold of the player I am currently spectating. I am thinking about some various anti-cheat plugins and cheat-detection methods but I need to get the player I am spectating (as an admin) as a player number or perhaps as a target entity. I found it cumbersome running plugins affecting players by referring their name and so on, It would be much more easy for the admin to simply have it affect the player he is currently spectating.
Thanks in advance!
/Mind
|
|
|
|