View Single Post
r0ma
Senior Member
Join Date: Apr 2012
Location: Great Tomb of Nazarick
Old 10-22-2020 , 11:22   Re: Add milliseconds
Reply With Quote #9

try to adapt to your code:
PHP Code:
#include <amxmodx>

new Float:flTime;

public 
plugin_init() {
    
flTime 15.0// seconds
    
    
set_task(0.1"taskFunc"___"a"floatround(flTime)*10);
}

public 
taskFunc() {
    
flTime -= 0.1;
    
    
set_hudmessage(random(250), random(250), random(250), -1.0, -1.000.050.050.050.05);
    
show_hudmessage(0"Seconds: %0.1f"flTime);
    
    if(
flTime 0.1) {
        
// task end
    
}

__________________
Discord:FluffyDeveloper#4753
Github: https://github.com/francoromaniello
AMX-ES: https://amxmodx-es.com/r0ma'
r0ma is offline
Send a message via MSN to r0ma