Spalvotas tekstas LANG faile.
Posted: 2011 Jan 16 13:42
Kaip reikia padaryti, kad butu spalvotas tekstas lang faile? Ta prasme, ne paciame sma rasyti ten ^x04 ar !g, bet lang faile pvz !g[SERVERIS] !n Serverio adresas: !g IP
Code: Select all
new msg_saytextpublic plugin_init() { msg_saytext = get_user_msgid("SayText")}stock client_printcolor(const id, const input[], any:...){ new iCount = 1, iPlayers[32] static szMsg[191] vformat(szMsg, charsmax(szMsg), input, 3) replace_all(szMsg, 190, "/g", "^4") replace_all(szMsg, 190, "/y", "^1") if(id) iPlayers[0] = id else get_players(iPlayers, iCount, "ch") for (new i = 0; i < iCount; i++) { if (is_user_connected(iPlayers[i])) { message_begin(MSG_ONE_UNRELIABLE, msg_saytext, _, iPlayers[i]) write_byte(iPlayers[i]) write_string(szMsg) message_end() } }}