Spalvotas tekstas LANG faile.
Spalvotas tekstas LANG faile.
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
Re: Spalvotas tekstas LANG faile.
Rodos cia jau buvo tokia tema, gali paieskot.
- aaarnas
- Vyr. diskusijų administratorius
- Posts: 3891
- Joined: 2010 Aug 31 13:21
- Skype: fiarno
- Contact:
Re: Spalvotas tekstas LANG faile.
Naudok tokį stock:
client_printcolor(id, "%L", id, "ZODIS")
Lang faile:
ZODIS = /gZalias /nGeltonas
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() } }}
Lang faile:
ZODIS = /gZalias /nGeltonas
Palikau CS pasaulį ;/ . Nebepasiekiamas.
Who is online
Users browsing this forum: No registered users and 9 guests