怎么让client_print 显示的字体是别的颜色
cs插件吧
全部回复
仅看楼主
level 5
怎么让client_print(id,print_chat,"这是内容") 在聊天框中显示的字有两种或者两者以上的颜色,如下图
2014年02月14日 15点02分 1
level 15
stock 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")
replace_all(szMsg, 190, "/t", "^3")
replace_all(szMsg, 190, "/w", "^0")
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, get_user_msgid("SayText"), _, iPlayers[i])
write_byte(iPlayers[i])
write_string(szMsg)
message_end()
}
}
}
PrintColor(id, "/g绿色 /y正常 /t队伍颜色")
    ------Now scared to death with the burning blue flame, we are!
2014年02月14日 17点02分 2
1