Forum

> > CS2D > Scripts > chat tag
Forums overviewCS2D overview Scripts overviewLog in to reply

English chat tag

6 replies
To the start Previous 1 Next To the start

old chat tag

OutstandingPP
BANNED Off Offline

Quote
hello guys i need script to make tag in chat

example if player says !pro
he can speak *playername* [ Pro ]: ...txt
how to do this ?
i tried to this by my self but u know noobers what will do when try to do some thing so...
send for me the code please

i am not kidding i am the noobest guy in scripting

thanks for reading

and thanks for all who send for me codes in my old threads they helped me to grow my server thanks

old Re: chat tag

Scott
BANNED Off Offline

Quote
¿something like that?

1
2
3
4
5
6
7
8
9
10
11
addhook("say","psay")
function psay(id,txt)
if string.sub(txt,1,4) == "!pro" then
msg("\169255255255"..player(id,"name").." \169000255255[PRO]:\169255255255"..txt:sub(5))
return 1
end
if txt:sub(1,4) =="!nab" then
msg("\169255255255"..player(id,"name").." \169000255255[NAB]:\169255255255"..txt:sub(5))
return 1
end
end

old Re: chat tag

Rainoth
Moderator Off Offline

Quote
Shows us your miserable code first.
@user Scott: No single person will want to write those commands every time they want to use the tag.
Use a personal variable to save their tag and then display it.

old Re: chat tag

Scott
BANNED Off Offline

Quote
@user Rainoth: You do not have to say miserable. It's something I did fast, Instead of criticizing send a new code

old Re: chat tag

Rainoth
Moderator Off Offline

Quote
@user Scott: The '@' is there for a reason. That first sentence wasn't for you.
I meant that he should send his "i tried to this by my self but u know noobers what will do when try to do some thing so..." code (whatever that means >.>) so we can take a look at it and tell him what's wrong with it.
I wrote quite a bunch of codes that do exact same thing he's asking. It wasn't just me either, writing such codes. If he bothered to use Search function he'd find plenty.

old Re: chat tag

THEMUD
User Off Offline

Quote
@user Scott: 'miserable' wasn't intended for you, buddy. Edit: He already said it above.
@user OutstandingPP: Isn't your request comparable with thread cs2d Nick Team? Anyhow, have this code and insist to comprehend each line. You will find out it doesn't need anything advanced but very simple logic.

The Code >

old Re: chat tag

OutstandingPP
BANNED Off Offline

Quote
@user THEMUD:
yes i did that in nick team but i didn't get the best answer and i said in nick team he will get chat tag when press menu button

but i really want to say big thanks to themud and scott thanks for sending the code
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview