AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SPEC get_user_name HELP (https://forums.alliedmods.net/showthread.php?t=205350)

ScrappeR 01-09-2013 18:24

SPEC get_user_name HELP
 
[IMG]http://img11.**************/img11/6799/31201931.png[/IMG]


How to make in hud Player to see their names when I'm SPEC thnx all..

PHP Code:

public show_country(id)
{
  if (!(
get_cvar_num("amx_showcountry")))
  {
    return 
PLUGIN_CONTINUE
  
}

  new 
target read_data(2)
  new 
szName[32]
  
get_user_name(idszNamecharsmax(szName))

  if (
target != id && target != 0)
  {
    
set_hudmessage(0255255, -1.00.7406.06.00.50.1527)  //-1.0, 0.74, 0, 0.0, 1.0, 0.0, 1.0, 27 )
    
show_hudmessage(id,"%s ^nFrom: %s^nPlayed on RX Gaming Server"szNamecountry[target])
  }

  return 
PLUGIN_CONTINUE



fysiks 01-09-2013 23:48

Re: SPEC get_user_name HELP
 
Which one of you is in spectate?

ScrappeR 01-10-2013 06:10

Re: SPEC get_user_name HELP
 
I and my name is LOLIPOP.
But i want to see the player's name if we hudmsg, not my name :(

AngeIII 01-10-2013 06:46

Re: SPEC get_user_name HELP
 
specplayer plugins do something like this.

you will see all player that spectate YOU.
edit and ok..

http://forums.alliedmods.net/showthread.php?p=484967

ScrappeR 01-10-2013 12:44

Re: SPEC get_user_name HELP
 
Quote:

Originally Posted by AngeIII (Post 1870770)
specplayer plugins do something like this.

you will see all player that spectate YOU.
edit and ok..

http://forums.alliedmods.net/showthread.php?p=484967

Sory you can help me.:oops:

AngeIII 01-10-2013 13:23

Re: SPEC get_user_name HELP
 
firstly try to run it and see how much this plugin solve your problem. maybe no need to do update..

and after that explain your problem as much as possible.

fysiks 01-10-2013 19:17

Re: SPEC get_user_name HELP
 
This must be something that Counter-Strike is lacking because the player being spectated is already shown in DOD.

Schwabba2 01-11-2013 03:38

Re: SPEC get_user_name HELP
 
PHP Code:

get_user_name(idszNamecharsmax(szName)) 

should be

PHP Code:

get_user_name(targetszNamecharsmax(szName)) 

and if it's not working, try this:

PHP Code:

new target read_data(2

=

PHP Code:

new targetbody
get_user_aiming
(idtargetbody

And don't forget to check if is_user_alive.

ScrappeR 01-11-2013 08:04

Re: SPEC get_user_name HELP
 
Quote:

Originally Posted by Schwabba2 (Post 1871386)
PHP Code:

get_user_name(idszNamecharsmax(szName)) 

should be

PHP Code:

get_user_name(targetszNamecharsmax(szName)) 

and if it's not working, try this:

PHP Code:

new target read_data(2

=

PHP Code:

new targetbody
get_user_aiming
(idtargetbody

And don't forget to check if is_user_alive.

You help me thanks you very much.. :P

YamiKaitou 01-11-2013 11:15

Re: SPEC get_user_name HELP
 
Quote:

Originally Posted by fysiks (Post 1871208)
This must be something that Counter-Strike is lacking because the player being spectated is already shown in DOD.

CS does it the same way. It seems that the OP is asking for your name when you are spectating, not the name of the player you are spectating. IE, you are specing me, you see your name and not mine. At least that is how I understand this thread.


All times are GMT -4. The time now is 13:44.

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