Raised This Month: $51 Target: $400
 12% 

Show player's name when aiming


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 07-20-2011 , 18:36   Show player's name when aiming
Reply With Quote #1

How can I display the players name in a hud message when I'm aiming at the player?

I have semiclip on my server and it doesn't show the name when you aim at someone so players can't know who is who.
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 07-21-2011 , 05:57   Re: Show player's name when aiming
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=148032
http://forums.alliedmods.net/showthread.php?t=94442
__________________
ANTICHRISTUS is offline
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 07-21-2011 , 07:49   Re: Show player's name when aiming
Reply With Quote #3

It still doesn't work with semiclip.
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 07-21-2011 , 09:15   Re: Show player's name when aiming
Reply With Quote #4

post semiclip plugin here or just that part of the script
r0ck is offline
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 07-21-2011 , 09:26   Re: Show player's name when aiming
Reply With Quote #5

PHP Code:
new maxplayers
new plr_solid[33]

plugin_init()
{
      
register_forward(FM_PlayerPreThink"preThink")
      
register_forward(FM_PlayerPostThink"postThink")
      
maxplayers get_maxplayers()
}
public 
preThink(id)
{
      if(
pev(idpev_movetype) == MOVETYPE_NOCLIP) return

      for(new 
i=1<= maxplayersi++)
      {
            if(!
pev_valid(i) || == id) continue
            
plr_solid[i] = pev(ipev_solid)
            
set_pev(ipev_solidSOLID_NOT)
      }
}
public 
postThink(id)
{
      if(
pev(idpev_movetype) == MOVETYPE_NOCLIP) return

      for(new 
i=1<= maxplayersi++)
      {
            if(!
pev_valid(i) || == id) continue
            
set_pev(ipev_solidplr_solid[i])
      }

Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
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 21:26.


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