Multilang Chat
So I have this in my code:
PHP Code:
"Cstrike_Chat_CT" "(Counter-Terrorist) %s1 : %s2" "Cstrike_Chat_T" "(Terrorist) %s1 : %s2" "Cstrike_Chat_CT_Dead" "*DEAD*(Counter-Terrorist) %s1 : %s2" "Cstrike_Chat_T_Dead" "*DEAD*(Terrorist) %s1 : %s2" "Cstrike_Chat_Spec" "(Spectator) %s1 : %s2" "Cstrike_Chat_All" "%s1 : %s2" "Cstrike_Chat_AllDead" "*DEAD* %s1 : %s2" "Cstrike_Chat_AllSpec" "*SPEC* %s1 : %s2" |
Re: Multilang Chat
You would have better to hook SayText msg.
For translations, look on here : http://forums.alliedmods.net/showthread.php?t=153034 |
Re: Multilang Chat
I don't understand SayText msg at all, that's why I made it by hooking say.
With your translation thread, I need to replace the whole color chat stuff with your new one right, so that I can have colored ML with id=0. |
Re: Multilang Chat
No, you will hook each message sent, so when a player writes something, you gonna catch as many messages as they are receivers, all you have to do then, don't bother about what was said, just alter the unformatted message, so replace #Cstrike_Chat_CT for example with "Admin (Counter-Terrorist) %s1 : %s2", and that's all (you can proceed ML with receiver id).
|
| All times are GMT -4. The time now is 20:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.