Raised This Month: $ Target: $400
 0% 

SPEC get_user_name HELP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ScrappeR
Senior Member
Join Date: Dec 2010
Old 01-09-2013 , 18:24   SPEC get_user_name HELP
Reply With Quote #1

[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

__________________
ScrappeR is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-09-2013 , 23:48   Re: SPEC get_user_name HELP
Reply With Quote #2

Which one of you is in spectate?
__________________
fysiks is offline
ScrappeR
Senior Member
Join Date: Dec 2010
Old 01-10-2013 , 06:10   Re: SPEC get_user_name HELP
Reply With Quote #3

I and my name is LOLIPOP.
But i want to see the player's name if we hudmsg, not my name
__________________
ScrappeR is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 01-10-2013 , 06:46   Re: SPEC get_user_name HELP
Reply With Quote #4

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
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT

Last edited by AngeIII; 01-10-2013 at 06:48.
AngeIII is offline
Send a message via Skype™ to AngeIII
ScrappeR
Senior Member
Join Date: Dec 2010
Old 01-10-2013 , 12:44   Re: SPEC get_user_name HELP
Reply With Quote #5

Quote:
Originally Posted by AngeIII View Post
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.
__________________
ScrappeR is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 01-10-2013 , 13:23   Re: SPEC get_user_name HELP
Reply With Quote #6

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.
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT

Last edited by AngeIII; 01-10-2013 at 13:23.
AngeIII is offline
Send a message via Skype™ to AngeIII
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-10-2013 , 19:17   Re: SPEC get_user_name HELP
Reply With Quote #7

This must be something that Counter-Strike is lacking because the player being spectated is already shown in DOD.
__________________
fysiks is offline
Schwabba2
Junior Member
Join Date: Jul 2012
Old 01-11-2013 , 03:38   Re: SPEC get_user_name HELP
Reply With Quote #8

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.

Last edited by Schwabba2; 01-11-2013 at 03:41.
Schwabba2 is offline
ScrappeR
Senior Member
Join Date: Dec 2010
Old 01-11-2013 , 08:04   Re: SPEC get_user_name HELP
Reply With Quote #9

Quote:
Originally Posted by Schwabba2 View Post
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..
__________________

Last edited by ScrappeR; 01-11-2013 at 08:07.
ScrappeR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-11-2013 , 11:15   Re: SPEC get_user_name HELP
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
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.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 13:44.


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