Raised This Month: $ Target: $400
 0% 

get id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
piepie
Member
Join Date: May 2013
Location: Pieland *.*
Old 06-04-2013 , 06:49   get id
Reply With Quote #1

can someone give an example code if i say .id 1 in chat it'll get the username of the player with userid 1 and print in chat ''The username of id 1 is player''
__________________

piepie is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-04-2013 , 07:16   Re: get id
Reply With Quote #2

So then read the arg and then use get_user_name on the arg
__________________
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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-05-2013 , 03:58   Re: get id
Reply With Quote #3

To do this you have to hook "say" alone and then parse the string manually to do this. This is done in many plugins and this question has been asked a lot.
__________________
fysiks 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 16:22.


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