Forum

> > CS2D > Scripts > Tags (im new)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tags (im new)

8 replies
To the start Previous 1 Next To the start

old Tags (im new)

AGRUSEL
User Off Offline

Quote
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!!!
edited 1×, last 11.06.19 12:15:33 am

old Re: Tags (im new)

Mami Tomoe
User Off Offline

Quote
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?

old Re: Tags (im new)

TheVillager
User Off Offline

Quote
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

old Re: Tags (im new)

TheVillager
User Off Offline

Quote
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

old Re: Tags (im new)

AGRUSEL
User Off Offline

Quote
@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
edited 1×, last 11.06.19 12:53:06 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview