Raised This Month: $ Target: $400
 0% 

Hide target info in Status Text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-26-2008 , 15:39   Hide target info in Status Text
Reply With Quote #1

Hello. I want to hide the info of the player you're aiming at. But only for a certain team.
I know it will affect hostage etc. but it's OK for me.

So, let's say if:
CT is aiming at CT = true.
CT is aiming at T = true.
T is aiming at CT = true.
T is aiming at T = false (hides name and hp).

PHP Code:
#include <amxmodx>
 
public plugin_init() 
        
register_message(get_user_msgid("StatusText"), "msgStatusText")
 
public 
msgStatusText()
{
        
// If T is looking at T = handled. Else - continue.

Or if it's hard enough or impossible then at least hide info for Ts but show for CTs (Ts wont see info of neither T or CT). I've tried this myself but unsuccessfuly.
Thanks.
__________________
hleV is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 07-26-2008 , 23:46   Re: Hide target info in Status Text
Reply With Quote #2

-_-
you can create a new status text(blank) when a T see his teammates
hzqst is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-27-2008 , 18:47   Re: Hide target info in Status Text
Reply With Quote #3

Quote:
Originally Posted by hzqst View Post
-_-
you can create a new status text(blank) when a T see his teammates
Yes I can. But I need help with the code.
__________________
hleV is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 07-28-2008 , 02:26   Re: Hide target info in Status Text
Reply With Quote #4

I believe this would work to check and see who is aiming at who

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define TEAM_T 1
#define TEAM_CT 2
public client_PreThink(id) {
      new 
AimerID,AimedAtID,bodypart,distance
      get_user_aiming
(AimerID,AimedAtID,bodypart,distance)
      if(
get_user_team(AimerID) == TEAM_T && get_user_team(AimedAtID) ==      TEAM_T)
      {
            
//a T aiming at another T
      
}

__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-28-2008 , 07:49   Re: Hide target info in Status Text
Reply With Quote #5

Thanks. After some editions I've finally made it work.
__________________
hleV is offline
Reply



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 05:37.


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