Raised This Month: $ Target: $400
 0% 

Simple question ;)


Post New Thread Reply   
 
Thread Tools Display Modes
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 05-31-2008 , 08:05   Re: Simple question ;)
Reply With Quote #11

^x03 - is team color : red for T,blue for CT and grey for Spectators
__________________

anakin_cstrike is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 05-31-2008 , 08:06   Re: Simple question ;)
Reply With Quote #12

^x01 is the value of client's con_colour.
^x02 is team colour until the end of the name.
^x03 is team colour. ( blue, red or grey depending on what team you're in )
^x04 is green.
[ --<-@ ] Black Rose is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 05-31-2008 , 08:08   Re: Simple question ;)
Reply With Quote #13

thanks for correcting me both of you..

+1 karma :p

Last edited by Mlk27; 05-31-2008 at 08:11.
Mlk27 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-31-2008 , 08:09   Re: Simple question ;)
Reply With Quote #14

hmmmm..... but it doesn't work!
EDIT: Very sorry WORKS fine.
EDIT: karma for everyone?

Last edited by xbatista; 05-31-2008 at 08:15.
xbatista is offline
Send a message via Skype™ to xbatista
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 05-31-2008 , 08:20   Re: Simple question ;)
Reply With Quote #15

Code:
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), {0,0,0}, /*Reciever ID*/); write_byte(); // Sender ID write_string(); // Channel write_string(); // If a user changes his name this is the old one and the third is his new. Just put "" here. write_string(); // Message message_end(); /* Channels: * #Cstrike_Chat_T * #Cstrike_Chat_CT * #Cstrike_Chat_Spec * #Cstrike_Chat_All * #Cstrike_Chat_AllSpec * #Cstrike_Chat_AllDead * #Cstrike_Chat_T_Dead * #Cstrike_Chat_CT_Dead * */

In your case I would use this:
Code:
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), {0,0,0}, Players[i]); write_byte(id); write_string("#Cstrike_Chat_All"); write_string(""); write_string(szMsg); message_end(); //
It may be possible to use MSG_BROADCAST. I don't know if it will show but you could always try.

Last edited by [ --<-@ ] Black Rose; 05-31-2008 at 08:37.
[ --<-@ ] Black Rose is offline
dekken
Veteran Member
Join Date: Jul 2007
Old 06-02-2008 , 05:34   Re: Simple question ;)
Reply With Quote #16

PHP Code:
stock green_print(index, const sMessage[])
{
    static 
MSG_typeid;
    if(
index)
    {
        
id index;
        
MSG_type MSG_ONE_UNRELIABLE;
    }
    else
    {
        
id findPlayer();
        
MSG_type MSG_BROADCAST;
    }
    
    
message_begin(MSG_typeSayText_id);
    
write_byte(id);
    
write_string(sMessage);
    
message_end();
    
    return 
1;

and then show the message..

PHP Code:
green_print(PlayerIndex"BlaBlaBlaBla"
well thats my way...
__________________
Signature Goes Here
dekken is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-04-2008 , 11:04   Re: Simple question ;)
Reply With Quote #17

Quote:
Use descriptive topic titles. People should know at a glance of the title what the thread is about.
http://forums.alliedmods.net/showthread.php?t=49470

Failure to fix your topic will result in topic closure
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:07.


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