AMXX-BG.INFO coll_msg.inc Raw include

coll_msg.inc

Original include source with line numbers.

Back Download .inc
1 stock Chat(const id, const input[], any:...){
2 new count = 1, players[32];
3 static msg[ 191 ];
4 vformat(msg, 190, input, 3);
5 if (id) players[0] = id; else get_players(players , count , "ch"); {
6 for (new i = 0; i < count; i++){
7 if (is_user_connected(players[i])){
8 message_begin(MSG_ONE_UNRELIABLE , get_user_msgid("SayText"), _, players[i]);
9 write_byte(players[i]);
10 write_string(msg);
11 message_end();
12 }
13 }
14 }
15 }