Raised This Month: $ Target: $400
 0% 

get_user_info()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ZeonSoldier
Member
Join Date: Jan 2006
Old 03-18-2006 , 01:33  
Reply With Quote #2

You can try typing 'cvarlist' in console... That should give you all clientside variables... minus the sv_ and mp_ ones... those would be for hosting a server...

Beyond that, I know the 'team' variable is not the way to find their team. Looking at the documentation... BillyTheKid submitted:
Quote:
Originally Posted by BillyTheKid
djschwartz at adelphia dot net Aug-22-04 03:59:08
A good way to look at this get_user_info(who, command, variable, howmany) new name[32] - declaring variable name with a buffer of 32 id - This is the id of the client you would like to get the name of.. This could also be a number! "name" - This is basicly in short the command you would like info back on. name - Assigns the clients username to the variable name. So how do you use this:
Code:
public client_connect(id) {      new name[32]      get_user_info(id, "name", name, 31)      set_hudmessage(200, 0, 0, 0.05, 0.65, 2, 0.02, 30.0, 0.03, 0.3, 2)      show_hudmessage(0, "%s has Entered",name) } When the Client connects it will send a hud message "{clan}playername has Entered" Other uses might be to get a user's rates.  A couple commands for that would be. new rate[32] get_user_info(id, "rate", rate, 31)       OR get_user_info(id, "cl_rate", rate, 31)       OR get_user_info(id, "cl_cmdrate", rate, 31) //One more example new getfps[32] get_user_info(id, "fps_max", getfps, 31) If I made any typos sorry you guys BillyTheKid

Does that help at all?
ZeonSoldier is offline
Send a message via MSN to ZeonSoldier
 



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:41.


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