how do i get hostname?
trying to make a plugin so when you type .need 1-13 it will put in the hostname at the end [ Need 1 ] so how do I get the hostname to change?
|
Re: how do i get hostname?
"hostname" is a cvar.
So you handle it with pcvars like usual. |
Re: how do i get hostname?
If you use get_user_name with 0 for the player it will give you the hostname.
|
Re: how do i get hostname?
Also don't forget that the string size should be greater than 32 (what is the hostname's char limit, btw?)
|
Re: how do i get hostname?
Quote:
|
Re: how do i get hostname?
This is stated in funcwiki, not in description but down in comments.
http://www.amxmodx.org/funcwiki.php?go=func&id=165 |
Re: how do i get hostname?
you can try this wich worked for me before:
PHP Code:
|
Re: how do i get hostname?
Quote:
|
Re: how do i get hostname?
Quote:
It actually works for me ;). ID = server saying the text, that's why it will name the sender of the written text. |
Re: how do i get hostname?
Quote:
|
| All times are GMT -4. The time now is 14:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.