Raised This Month: $ Target: $400
 0% 

Solved get_pcvar_float() and ColorChat.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lexzor
Veteran Member
Join Date: Nov 2020
Old 01-18-2021 , 02:41   get_pcvar_float() and ColorChat.
Reply With Quote #1

hello, i'm trying to display first 2 numbers of a float in chat, but i don t know how, i tried what i found on google but none of the works.

this is my code

PHP Code:

static CamResetTime

CamResetTime 
register_cvar("csgo_camreset""15.0")

CamResetTime 15.0

ColorChat
(idGREEN"%s You can only use^4 Camera View^1 in^4 the first %.2f seconds^1 of every round!"tagget_pcvar_num(CamResetTime)) 
and this is the output

Code:
[JoiNET] You can only use Camera View in the first 0.00 seconds of every round!

Last edited by lexzor; 01-18-2021 at 10:00.
lexzor is offline
 


Thread Tools
Display Modes

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 14:11.


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