Raised This Month: $ Target: $400
 0% 

Displaying Server Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
delta44
Member
Join Date: Jun 2006
Old 06-17-2007 , 09:59   Displaying Server Name
Reply With Quote #1

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
__________________
delta44 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-17-2007 , 10:11   Re: Displaying Server Name
Reply With Quote #2

Something like this
Code:
new servername[32]
get_cvar_string("hostname",servername,31)
@Master own3d
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 06-17-2007 , 10:11   Re: Displaying Server Name
Reply With Quote #3

cvar "hostname"
_Master_ is offline
delta44
Member
Join Date: Jun 2006
Old 06-17-2007 , 10:14   Re: Displaying Server Name
Reply With Quote #4

thanks to you both that helped alot fo my future plugins.
__________________
delta44 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 10:40.


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