Raised This Month: $ Target: $400
 0% 

Timeleft in hostname


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-02-2007 , 15:22   Re: Timeleft in hostname
Reply With Quote #5

Oh sorry, now i get it what you want to do , this is the correct way :

Code:
public live()
{
 new const server_name[] = "nume server";
 
 new mapname[32];
 get_mapname(mapname, sizeof mapname - 1);
 
 new time_left = get_timeleft();
 
 new Buffer[256];
 format(Buffer, sizeof Buffer - 1, "[%s]-=-[Harta: %s]-=-[Timp Ramas: %d:%d]", server_name, mapname, time_left / 60, time_left % 60);
 
 set_cvar_string("hostname", Buffer);
}
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 09-02-2007 at 15:29.
Alka is offline
 



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


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