Raised This Month: $ Target: $400
 0% 

Client_Print


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-06-2011 , 08:17   Client_Print
Reply With Quote #1

How do I make it so it prints in colorchat with client_print. I'm not sure how to do this. Can anybody give me an example?>
PHP Code:
Slayaim(id)
{
    new 
playerbody;
    new 
szPlayerName[32];
    
get_user_aiming(idplayerbody);
    
get_user_name(playerszPlayerName32);

    if (
get_user_flags(id) & ADMIN_BAN)
    {
        if (
is_user_alive(player) && get_user_flags(player) & ADMIN_IMMUNITY)
        {
            
client_print(id"You cant slay some one with Immunity!");
        }
        else
        if (
is_user_alive(player))
        {
            
user_kill(player);
            
client_print(player"You have been Slayed!");
            
client_print(id"You just Slayed %s!"szPlayerName);
        }
    }

__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
iplayz
Junior Member
Join Date: Oct 2011
Old 10-06-2011 , 08:26   Re: Client_Print
Reply With Quote #2

ColorChat(0, GREY, "You're text will appear in GREY!")

Make sure you have #include <colorchat> aswell
iplayz is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-06-2011 , 08:27   Re: Client_Print
Reply With Quote #3

Yeah. I know about include colorchat. Will respond in like 8 hours if it works. Have to go to work.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-06-2011 , 09:11   Re: Client_Print
Reply With Quote #4

PHP Code:
Slayaim(id

    new 
playerbody
    new 
szPlayerName[32]; 
    
get_user_aiming(idplayerbody); 
    
get_user_name(playerszPlayerName32); 

    if (
get_user_flags(id) & ADMIN_BAN
    { 
        if (
is_user_alive(player) && get_user_flags(player) & ADMIN_IMMUNITY
        { 
            
ColorChat(idNORMAL"^x04GREEN^x03 TEAM_COLOR^x01 NORMAL COLOR"); 
        } 
        else 
        if (
is_user_alive(player)) 
        { 
            
user_kill(player); 
            
ColorChat(idNORMAL"^x04GREEN^x03 TEAM_COLOR^x01 NORMAL COLOR");
            
ColorChat(idNORMAL"^x04GREEN^x03 TEAM_COLOR^x01 NORMAL COLOR");
        } 
    } 

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Old 10-06-2011, 16:51
enjoi.
This message has been deleted by enjoi..
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:14.


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