Page 1 of 1

[CS:GO] HintText

Posted: Sat Nov 03, 2018 9:03 pm
by velocity
I cannot change the font size in a hinttext in CS:GO

This doesn't work

HintText("<font size='30'>Hello</font>").send(index)

Re: HintText

Posted: Sat Nov 03, 2018 9:21 pm
by Ayuto
Which game?

Re: HintText

Posted: Sat Nov 03, 2018 9:22 pm
by velocity
cs:go

Re: [CS:GO] HintText

Posted: Tue Nov 06, 2018 5:35 pm
by Ayuto
https://forums.alliedmods.net/showthrea ... ost2604171

This is working fine for me:

Syntax: Select all

from messages import HintText
from events import Event

@Event('player_say')
def f(event):
HintText('<span class="fontSize-xs">Hello</span>').send()

Re: [CS:GO] HintText

Posted: Wed Nov 07, 2018 10:30 pm
by decompile
I saw many using the "<pre>" tag. Apparently it makes the font size visible and makes /t work again.

Re: [CS:GO] HintText

Posted: Thu Nov 08, 2018 9:40 am
by Ayuto
As mentioned in the linked thread, you can only change the font size by using the style classes. The pre-tag won't help.