Raised This Month: $ Target: $400
 0% 

informations hud help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tedaimlocks
Senior Member
Join Date: Jan 2024
Old 01-23-2024 , 15:32   informations hud help
Reply With Quote #1

I need help with this following script , so i want to display roundsleft instead of timeleft because i dont use it anymore , and also remove the time from the code . I got the roundsleft plugin from here
https://forums.alliedmods.net/showthread.php?p=67909

PHP Code:
#include <amxmodx>
 
public plugin_init()
{
        
register_plugin("Informations in hud""1.0""Luci.");
       
        
set_task(1.0"info_hud",_,_,_,"b");
}
 
public 
info_hud()
{
        new 
hostname[62], map[32], timeleft get_timeleft(), ora[10];
       
        
get_cvar_string("hostname"hostnamecharsmax(hostname))
        
get_mapname(mapcharsmax(map))
        
get_time("%H:%M:%S"oracharsmax(ora))
 
 
        
set_hudmessage(random_num(050), random_num(050), random_num(050), -1.00.02)
        
show_hudmessage(0"%s^n Map: %s | Roundsleft: %d:%02d | Time: %s"hostnamemaptimeleft 60timeleft 60ora)


Last edited by DarkDeviL; 01-23-2024 at 22:18. Reason: Added CODE tag
tedaimlocks 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 00:33.


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