Forum

> > CS2D > Scripts > Tags (im new)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Tags (im new)

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Tags (im new)

AGRUSEL
User Off Offline

Zitieren
Hello everyone, my idea is that every time you speak, a tag appears saying your level, but I do not know, someone helps me?


Example:

[LEVEL 19] AGRUSEL: hello guys!!!
1× editiert, zuletzt 11.06.19 00:15:33

alt Re: Tags (im new)

Mami Tomoe
User Off Offline

Zitieren
What is the variable name of your level?
Such as
players[id].level


Or do you not even have a basic script to begin with?

alt Re: Tags (im new)

TheVillager
User Off Offline

Zitieren
1
2
3
4
5
6
addhook("say","levelsay")

function levelsay(id,txt)
     msg("©255255255[LEVEL "..level[id].."] "..player(id,"name")..": ©000255100"..txt)
	 return 1
end

alt Re: Tags (im new)

TheVillager
User Off Offline

Zitieren
1
2
3
4
5
6
addhook("say","levelsay")

function levelsay(id,txt)
     msg("©255255255[LEVEL "..p_level[id].."] "..player(id,"name")..": ©000255100"..txt)
      return 1
end

Try this

alt Re: Tags (im new)

AGRUSEL
User Off Offline

Zitieren
@user TheVillager: It works although there is a small problem, when I speak in the chat, the message is repeated.

Example:
[LEVEL 19] AGRUSEL : HI ALL
AGRUSEL : HI ALL
1× editiert, zuletzt 11.06.19 00:53:06
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht