Raised This Month: $51 Target: $400
 12% 

Getting time left before c4 explotion


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-18-2022 , 21:25   Getting time left before c4 explotion
Reply With Quote #1

edit: Solved: Christ.. I put %i instead of %f SORRY!

Below is how I see it used when looking at examples, but for me it just prints:
1107723518
1107948770

PHP Code:
public printC4Timer()
{
    new 
c4 fm_find_ent_by_model(-1"grenade""models/w_c4.mdl")
    new 
float:explode_time cs_get_c4_explode_time(c4) - get_gametime( );
    
client_cmd(0"say %i"explode_time)


Last edited by GoldNux; 11-18-2022 at 21:30.
GoldNux 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 18:55.


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