Raised This Month: $ Target: $400
 0% 

problem with color chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 04-03-2009 , 08:07   problem with color chat
Reply With Quote #1

PHP Code:
/* Plugin generated by Emilioneri */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Advertisement"
#define VERSION "1.0"
#define AUTHOR "Emilioneri"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_logevent("Event_Round_Start"2"1=Round_Start")
}

public 
Event_Round_Start()
{
    
client_print(0print_chat"^x04^"[WwW.CaMe.Tk]^"^x01")
    
client_print(0print_chat"Want to be an admin ?? contact me. my skype:  ^x04^"bla bla bla^"^x01 Protect server rules!")
    return 
PLUGIN_CONTINUE

It should print site and skype green coloures. But it doesn't. Why

Last edited by Emilioneri; 04-03-2009 at 08:10.
Emilioneri is offline
Send a message via Skype™ to Emilioneri
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-03-2009 , 08:15   Re: problem with color chat
Reply With Quote #2

Because color chat does not work in client_print. You have to use the ColorChat function (which is in the ColorChat.inc)
__________________
fysiks is offline
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 04-03-2009 , 08:28   Re: problem with color chat
Reply With Quote #3

ColorChat.inc
Emilioneri is offline
Send a message via Skype™ to Emilioneri
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-03-2009 , 08:42   Re: problem with color chat
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=45753

That's not the include but it has everything that the include does and you will be able to compile online if you just put all the required functions in your script .
__________________
fysiks is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-03-2009 , 09:36   Re: problem with color chat
Reply With Quote #5

add in the folder scripting/include

and use this:
PHP Code:
Colorchat(0GREEN"^x04^"[WwW.CaMe.Tk]^"^x01"
    
Colorchat(0GREEN"Want to be an admin ?? contact me. my skype:  ^x04^"bla bla bla^"^x01 Protect server rules!"
Attached Files
File Type: inc colorchat.inc (3.3 KB, 157 views)
__________________
alan_el_more is offline
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 04-03-2009 , 14:01   Re: problem with color chat
Reply With Quote #6

Quote:
Originally Posted by alan_el_more View Post
add in the folder scripting/include

and use this:
PHP Code:
Colorchat(0GREEN"^x04^"[WwW.CaMe.Tk]^"^x01"
    
Colorchat(0GREEN"Want to be an admin ?? contact me. my skype:  ^x04^"bla bla bla^"^x01 Protect server rules!"
Thx
Emilioneri is offline
Send a message via Skype™ to Emilioneri
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-03-2009 , 14:08   Re: problem with color chat
Reply With Quote #7

this will be more right.

PHP Code:
ColorChat0GREEN"^x04[WwW.CaMe.Tk]" );
ColorChat0GREEN"^x01Want to be an admin? Contact me. My Skype:^x04 blabla^x01 Protect server rules!" ); 
__________________
xPaw is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-03-2009 , 19:38   Re: problem with color chat
Reply With Quote #8

I have the include too but I would say just put the functions directly in your code because ColorChat.inc is not standard to amxmodx. This will make it more transferable and should be able to compile online . If you only need it for your personal use the include will work fine.
__________________
fysiks 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 02:15.


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