Raised This Month: $ Target: $400
 0% 

Getting cvars and getting spectating target.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mind
Junior Member
Join Date: May 2005
Location: Sweden
Old 05-09-2005 , 02:40   Getting cvars and getting spectating target.
Reply With Quote #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
Mind is offline
Send a message via ICQ to Mind
 



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 16:43.


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