AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Show player's name when aiming (https://forums.alliedmods.net/showthread.php?t=162591)

Desikac 07-20-2011 18:36

Show player's name when aiming
 
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. :)

ANTICHRISTUS 07-21-2011 05:57

Re: Show player's name when aiming
 
http://forums.alliedmods.net/showthread.php?t=148032
http://forums.alliedmods.net/showthread.php?t=94442

Desikac 07-21-2011 07:49

Re: Show player's name when aiming
 
It still doesn't work with semiclip. :(

r0ck 07-21-2011 09:15

Re: Show player's name when aiming
 
post semiclip plugin here or just that part of the script

Desikac 07-21-2011 09:26

Re: Show player's name when aiming
 
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])
      }




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

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