AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Displaying Server Name (https://forums.alliedmods.net/showthread.php?t=56637)

delta44 06-17-2007 09:59

Displaying Server Name
 
is there a code that gets the server name?

cause i want to display it when some1 does a command

it would say like

Code:

<ServerName> Your cl_uploadrate is now 1000
that is jsut an example.

so when the server is different the server name would be the new server name or the new server name. hope you kno0w what i mean.

thanks for The help

Alka 06-17-2007 10:11

Re: Displaying Server Name
 
Something like this
Code:

new servername[32]
get_cvar_string("hostname",servername,31)

@Master own3d :P

_Master_ 06-17-2007 10:11

Re: Displaying Server Name
 
cvar "hostname"

delta44 06-17-2007 10:14

Re: Displaying Server Name
 
thanks to you both that helped alot fo my future plugins.


All times are GMT -4. The time now is 10:40.

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