Raised This Month: $32 Target: $400
 8% 

Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raducuursu
Junior Member
Join Date: Sep 2012
Old 09-03-2013 , 10:43   Message
Reply With Quote #1

message_shower sma so I want to change it and put ColorChat of you attach far ColorChat
delete old ColorChat of sma and put it after include my
It is sma:

PHP Code:
#include < amxmodx >
#include < amxmisc >

#define PLUGIN "Messages Shower"
#define VERSION "1.0"
#define AUTHOR "Alka"

#define ADVERTISING_TIME 60.0

stock const messages [ ] [ ] =
{
    
"mesaj",
      
"mesaj",
    
"mesaj",
    
"mesaj",
    
"mesaj"
}

public 
plugin_init ( )
{
    
register_plugin PLUGINVERSIONAUTHOR )
    
    
set_task ADVERTISING_TIME"show_messages"___,"b" );
}

public 
show_messages ( )
{
    new 
Buffer[256];
    
formatex(Buffersizeof Buffer 1"^x04%s"messages[random(sizeof messages)]);
    
    new 
players[32], numid;
    
get_players(playersnum);
    
    for(new 
num i++)
    {
        
id players[i]
    
        
message_begin(MSG_ONEget_user_msgid("SayText"), _id);
        
write_byte(id);
        
write_string(Buffer);
        
message_end();
    }

it is chatcolor.inc
PHP Code:
#if defined _chatcolor_included
  #endinput
#endif
#define _chatcolor_included

#pragma reqlib chatcolor

enum _:Colors {
    
DontChange,
    
Red,
    
Blue,
    
Grey
}

native client_print_color(idiColor=DontChange, const szMsg[], any:...) 

Last edited by raducuursu; 09-03-2013 at 10:50.
raducuursu is offline
bat
Veteran Member
Join Date: Jul 2012
Old 09-03-2013 , 11:38   Re: Message
Reply With Quote #2

Code:
#include < amxmodx >
#include < amxmisc >
#include <chatcolor>

#define PLUGIN "Messages Shower"
#define VERSION "1.0"
#define AUTHOR "Alka"

#define ADVERTISING_TIME 60.0

stock const messages [ ] [ ] =
{
    "mesaj",
    "mesaj",
    "mesaj",
    "mesaj",
    "mesaj"
}

public plugin_init ( )
{
    register_plugin ( PLUGIN, VERSION, AUTHOR )
    
    set_task ( ADVERTISING_TIME, "show_messages", _, _, _,"b" );
}

public show_messages ( )
{
    client_print_color(0, Grey, "%s", messages[random(sizeof messages)])
}
I don't tested! include -> http://forums.alliedmods.net/showthread.php?p=851160
__________________

Last edited by bat; 09-03-2013 at 11:39.
bat is offline
Send a message via Skype™ to bat
raducuursu
Junior Member
Join Date: Sep 2012
Old 09-03-2013 , 14:23   Re: Message
Reply With Quote #3

Thanks
raducuursu is offline
raducuursu
Junior Member
Join Date: Sep 2012
Old 09-03-2013 , 14:36   Re: Message
Reply With Quote #4

is a problem, you put ^ 3 appears blue or red, I want to show gray
raducuursu is offline
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 09-03-2013 , 17:12   Re: Message
Reply With Quote #5

^1 = clientside color. (con_color rrr ggg bbb).
^3 = 2nd argument color (Grey,Red,Blue,DontChange)
client_print_color(1st arg, 2nd arg, 3rd arg, any:...);
^4 = Green.

Dyn ColorChat : http://forums.alliedmods.net/showthread.php?p=851160
DWIGHTpN is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 09-03-2013 , 18:19   Re: Message
Reply With Quote #6

Can anybody tell me whether this plugin is good ?

Last edited by Lolz0r; 09-03-2013 at 18:23.
Lolz0r 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 18:43.


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