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 ( PLUGIN, VERSION, AUTHOR )
set_task ( ADVERTISING_TIME, "show_messages", _, _, _,"b" );
}
public show_messages ( )
{
new Buffer[256];
formatex(Buffer, sizeof Buffer - 1, "^x04%s", messages[random(sizeof messages)]);
new players[32], num, id;
get_players(players, num);
for(new i = 0 ; i < num ; i++)
{
id = players[i]
message_begin(MSG_ONE, get_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(id, iColor=DontChange, const szMsg[], any:...)