cs插件吧 关注:8,277贴子:88,790
  • 1回复贴,共1

怎么让client_print 显示的字体是别的颜色

只看楼主收藏回复

怎么让client_print(id,print_chat,"这是内容") 在聊天框中显示的字有两种或者两者以上的颜色,如下图


1楼2014-02-14 23:21回复
    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!


    IP属地:河南2楼2014-02-15 01:43
    回复