Guest User

Untitled

a guest
Feb 12th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.77 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <ColorChat>
  3.  
  4. public plugin_init() {
  5.     set_task(30.0, "Text",_,_,_, "b");
  6. }
  7.  
  8.  
  9. public Text(){
  10.     ColorChat(0, "^3Welcome to ^4cBa ^3clubs | Pcw 24/7 | skype: ^4dviriko10^3 | Have Fun :)");
  11. }
  12.  
  13. stock ColorChat(const id, const string[], {Float, Sql, Resul,_}:...) {
  14.     new msg[191], players[32], count = 1;
  15.    
  16.     static len;
  17.     len = formatex(msg, charsmax(msg), "^x01" );
  18.     vformat(msg[len], charsmax(msg) - len, string, 3);
  19.    
  20.     if(id)
  21.         players[0] = id;
  22.     else
  23.         get_players(players,count,"ch");
  24.    
  25.     for (new i = 0; i < count; i++)
  26.     {
  27.         if(is_user_connected(players[i]))
  28.         {
  29.             message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"),_, players[i]);
  30.             write_byte(players[i]);
  31.             write_string(msg);
  32.             message_end();
  33.         }
  34.     }
  35.     return;
  36. }
Add Comment
Please, Sign In to add comment