client_print问题
本帖最后由 iam5362 于 2009-4-4 14:44 编辑new msg
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
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)
}
}
}
一进服务器就会在左下角有一些语言出来,本来是想只是玩家进入游戏后自己能看见,不过现在只要有人进入所有人就都还能看见那些语言.请问怎么改???
client_print(0, print_chat, "%L", id, "TIME_INFO_1", timeleft / 60, timeleft % 60, nextmap)
谢谢zwfgdlc 帮我很多次了 我是来学习的
页:
[1]