Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <ColorChat>
- public plugin_init() {
- set_task(30.0, "Text",_,_,_, "b");
- }
- public Text(){
- ColorChat(0, "^3Welcome to ^4cBa ^3clubs | Pcw 24/7 | skype: ^4dviriko10^3 | Have Fun :)");
- }
- stock ColorChat(const id, const string[], {Float, Sql, Resul,_}:...) {
- new msg[191], players[32], count = 1;
- static len;
- len = formatex(msg, charsmax(msg), "^x01" );
- vformat(msg[len], charsmax(msg) - len, string, 3);
- if(id)
- players[0] = id;
- else
- get_players(players,count,"ch");
- for (new i = 0; i < count; i++)
- {
- if(is_user_connected(players[i]))
- {
- message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"),_, players[i]);
- write_byte(players[i]);
- write_string(msg);
- message_end();
- }
- }
- return;
- }
Add Comment
Please, Sign In to add comment