Raised This Month: $ Target: $400
 0% 

text colors doesn't work...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-08-2011 , 12:32   Re: text colors doesn't work...
Reply With Quote #2

You can't print colors with default amxx natives, you have to use my colorchat plugin, or any colorchat include, or to make your own code into your plugins.

If you don't need colorchange, and if you don't need ML support with id=0 and LANG_PLAYER, then you can use this simple stock :

PHP Code:
colorchat_simple(id, const fmt[], any:...)
{
    static 
iMsgSayText
    
if( !iMsgSayText )
    {
        
iMsgSayText get_user_msgid("SayText")
    }
    new 
szMessage[192]
    
vformat(szMessagecharsmax(szMessage), fmt3)
    
message_begin(id MSG_ONE_UNRELIABLE MSG_BROADCASTiMsgSayText, .player=id)
    
write_byte(id id 1)
    
write_string(szMessage)
    
message_end()

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-08-2011 at 13:27.
ConnorMcLeod is offline
 



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:13.


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