|
发表于 2006-2-10 22:03:08
|
显示全部楼层
来自 中国–湖南–郴州
回复: 如何在clinet_print中使用颜色?
具体是怎么实现的啊,现在想学编辑源码找不到什么资料啊。
这段要怎么改?
- public show_msg(parm[]){
- new name[32],id //server_name[64],id
- id = parm[0]
- get_user_name(id,name,31)
- //get_cvar_string("hostname",server_name,63)
- format(g_buffer,511,"进入了服务器, 来自: %s, %s, 祝您玩得愉快!",g_country[id],g_addr[id])
- if (get_cvar_num("ita_print_chat"))
- client_print(0,print_chat,"* %s %s",name,g_buffer)
- while(replace(g_buffer, 511, " ", "")){}
- while(replace(g_buffer, 511, ",", "^n")){}
- while(replace(g_buffer, 511, ":", "^n")){}
- format(g_buffer,511,"%s %s",name,g_buffer)
- set_hudmessage(0, 255, 0, 0.10, 0.55, 0, 6.0, 10.0, 0.5, 0.15, HUD_CHANNEL)
- show_hudmessage(0, g_buffer)
- return PLUGIN_CONTINUE
复制代码 |
|