AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help with colorchat.. (https://forums.alliedmods.net/showthread.php?t=53620)

ZooYork 04-07-2007 17:49

Need help with colorchat..
 
I tried to make plugin, but it didn't work. Whenever someone type /hello it would say Hello in chat with (Green) color.

EDIT: And when admin connect it would say "admin %s connected"

regalis 04-07-2007 18:06

Re: Need help with colorchat..
 
And what is the question?..0o

ZooYork 04-07-2007 18:49

Re: Need help with colorchat..
 
Quote:

Originally Posted by regalis (Post 462060)
And what is the question?..0o

Isnt it obvious, i couldnt do it i need help with this. :(

Nican 04-07-2007 20:23

Re: Need help with colorchat..
 
this might help you
http://forums.alliedmods.net/showthread.php?p=83344

ZooYork 04-08-2007 06:00

Re: Need help with colorchat..
 
Quote:

Originally Posted by Nican (Post 462093)

I guess, i cant just make it. :(

Ryu2877 04-08-2007 07:14

Re: Need help with colorchat..
 
http://forums.alliedmods.net/showthread.php?t=45753
maybe...

ZooYork 04-08-2007 07:27

Re: Need help with colorchat..
 
Quote:

Originally Posted by Ryu2877 (Post 462226)

I used that already, but it didnt work and i deleted the script. :|

|POW|Da_ghost 04-08-2007 07:40

Re: Need help with colorchat..
 
If you know the basics of scripting...
Try a ADMIN_SLAY(eg if ((get_user_flags(id) & ADMIN_SLAY)) ) check on client_putinserver(id) and get the name of the index(player) and client_print(0,print_chat,"Admin %s connected",thestringnameyouusedforname)
For the /hello try to capture say and read_args(chatmsg,128)
remove_quotes(chatmsg)
if(containi(chatmsg, "/hello") == 0){ and use clientprint again(shit forgot about the color il get that later.).
This might be a bit unclear .If you do not understand this IL get you a scripting example later since I'm not on my main pc(and don't have amxxstudio installed).
EDIT: Sigh I forgot how to do colorcodes again(I don't use them)


All times are GMT -4. The time now is 06:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.