How to get a name from an id
If you have already specified a steam id in the plugin, is there anyway you can tell it to find if there is someone in the server with the id and to get the name of the person.
|
Re: How to get a name from an id
Code:
/* Returns player name. */ |
Re: How to get a name from an id
I think he is talking about the Steam ID? *confused*
Code:
|
Re: How to get a name from an id
Quote:
equal is usually case sensitive. Using equal to compare a name with a defined name will return false unless the defined is spelled exactly the same as the used name. This whole thing Code:
Assuming you are correctly retrieving a players steamid, ie. in putinserver, it should look like this: Code:
|
Re: How to get a name from an id
I am making a sort of plugin like admin check, in which clients can check if the main admin is in the server. When clients say /adminz it checks if the id of the admin is in the server, and then finds the name of the admin
|
Re: How to get a name from an id
Good, if you are smart enough you can change the above Code a bit to make it work that way.
;) |
| All times are GMT -4. The time now is 04:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.