Raised This Month: $ Target: $400
 0% 

MSG_ONE or MSG_ONE_UNRELIABLE with no target entity NEED HELP!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 04-09-2009 , 05:12   MSG_ONE or MSG_ONE_UNRELIABLE with no target entity NEED HELP!
Reply With Quote #1

PHP Code:
    for(new <= g_iMaxPlayers a++)
    {
        if(!
is_user_alive(a) || (get_user_flags(a) & ADMIN_BAN))
        {
                if(!
is_user_alive(id) && get_user_team(id) != && (get_user_flags(id) & ADMIN_BAN))
                {
                    
format(message,127,"^x04[ADMIN] ^x01SCORE:%d ^x03*DEAD* ^x03%s^x04 : %s",get_user_frags(id)-get_user_deaths(id),name,text)
                
client_color(a,id,message);
                }

                else if(!
is_user_alive(id) && get_user_team(id) != 0)
                {
                
format(message,127,"^x01SCORE:%d ^x03*DEAD* ^x03%s^x01 : %s",get_user_frags(id)-get_user_deaths(id),name,text)
                
client_color(a,id,message);
                }
        }
    } 
PHP Code:
stock client_color(playeridcoloridmsg[]){
    
message_begin(playerid?MSG_ONE:MSG_ALL,get_user_msgid("SayText"),{0,0,0},playerid)
    
write_byte(colorid)
    
write_string(msg)
    
message_end()

i scripting my chat with score plugin..but when i test it,it get something error..
..anyone can help me..

Last edited by biscuit628; 04-09-2009 at 05:15.
biscuit628 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-09-2009 , 05:20   Re: MSG_ONE or MSG_ONE_UNRELIABLE with no target entity NEED HELP!
Reply With Quote #2

PHP Code:
get_user_team(id) != 0

// ->

is_user_connectedid 
PHP Code:
stock client_colorindexiColorszMessage[] ) {
    if( 
index )
        
message_beginMSG_ONE_UNRELIABLEget_user_msgid"SayText" ), _index );
    else
        
message_beginMSG_BROADCASTget_user_msgid"SayText" ) );
    
    
write_byteiColor );
    
write_stringszMessage );
    
message_end( );

__________________
xPaw is offline
Old 04-09-2009, 05:34
biscuit628
This message has been deleted by biscuit628. Reason: fix
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 02:25.


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