搜索
查看: 2846|回复: 3

client_print问题

[复制链接]
发表于 2009-4-4 14:43:23 | 显示全部楼层 |阅读模式 来自 辽宁沈阳
本帖最后由 iam5362 于 2009-4-4 14:44 编辑

new msg[512]

public client_color(playerid, colorid, msg[])
{
  message_begin(playerid?MSG_ONE:MSG_ALL,get_user_msgid("SayText"),_,playerid)
  write_byte(colorid)
  write_string(msg)
  message_end()
}

public dispInfo(id)
{
        format(msg, 511, "%L", id, "FWQ_GZ")
        client_color(id,msg)
        format(msg, 511, "%L", id, "HIGHT_KICK")
        client_color(id,msg)
        format(msg, 511, "%L", id, "WU_LIAN")
        client_color(id,msg)
        format(msg, 511, "%L", id, "TYPE_HELP")
        client_color(id,msg)
       
        new nextmap[32]
        get_cvar_string("amx_nextmap", nextmap, 31)
       
        if (get_cvar_float("mp_timelimit"))
        {
                new timeleft = get_timeleft()
               
                if (timeleft > 0)
                {
                        client_print(id, print_chat, "%L", id, "TIME_INFO_1", timeleft / 60, timeleft % 60, nextmap)
                } else {
                        client_print(id, print_chat, "%L", id, "TIME_INFO_2", nextmap)
                }
        }
}



一进服务器就会在左下角有一些语言出来,本来是想只是玩家进入游戏后自己能看见,不过现在只要有人进入所有人就都还能看见那些语言.请问怎么改???
发表于 2009-4-4 17:02:17 | 显示全部楼层 来自 广东惠州

  1. client_print(0, print_chat, "%L", id, "TIME_INFO_1", timeleft / 60, timeleft % 60, nextmap)
复制代码
回复

使用道具 举报

 楼主| 发表于 2009-4-4 18:42:43 | 显示全部楼层 来自 辽宁沈阳
谢谢zwfgdlc 帮我很多次了  
回复

使用道具 举报

发表于 2010-5-2 20:51:57 | 显示全部楼层 来自 重庆
我是来学习的
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表