Forum

> > CS2D > Scripts > chat tag
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch chat tag

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt chat tag

OutstandingPP
BANNED Off Offline

Zitieren
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

alt Re: chat tag

Scott
BANNED Off Offline

Zitieren
¿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

alt Re: chat tag

Rainoth
Moderator Off Offline

Zitieren
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.

alt Re: chat tag

Scott
BANNED Off Offline

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

alt Re: chat tag

Rainoth
Moderator Off Offline

Zitieren
@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.

alt Re: chat tag

THEMUD
User Off Offline

Zitieren
@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 >

alt Re: chat tag

OutstandingPP
BANNED Off Offline

Zitieren
@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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht