Tags (im new)
8 replies



09.06.19 06:09:57 pm
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!!!
Example:
[LEVEL 19] AGRUSEL: hello guys!!!
edited 1×, last 11.06.19 12:15:33 am
What is the variable name of your level?
Such as
Or do you not even have a basic script to begin with?
Such as
players[id].level
Or do you not even have a basic script to begin with?
It's hard being the best girl in the whole entire world
Code:
1
2
3
4
5
6
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
function levelsay(id,txt)
msg("©255255255[LEVEL "..level[id].."] "..player(id,"name")..": ©000255100"..txt)
return 1
end
Code:
1
2
3
4
5
6
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
function levelsay(id,txt)
msg("©255255255[LEVEL "..p_level[id].."] "..player(id,"name")..": ©000255100"..txt)
return 1
end
Try this
@
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

Example:
[LEVEL 19] AGRUSEL : HI ALL
AGRUSEL : HI ALL
edited 1×, last 11.06.19 12:53:06 am

I can not put it together with another function? If you can, how do I do it?



