|
发表于 2006-2-26 20:16:06
|
显示全部楼层
来自 中国–四川–成都
回复: 再次麻烦Enigmaya 帮忙修改显示地址插件!(附上源码)
Post by AE86
第一个为错误的截图
第二个为我我想要的效果
给你的资料就是他的掉钱插件里的。。
- public show_msg(parm[]){
- new name[32],id //server_name[64],id
- id = parm[0]
- new rankMsg[128];
- new iRankPos, iRankMax,izStats[8], izBody[8]
- if (cvar_exists("csstats_reset")){
- iRankPos = get_user_stats( id, izStats, izBody )
- iRankMax = get_statsnum()
- format(rankMsg,128,"排名第^%d^名[共^%d^名]",iRankPos,iRankMax)
- }else format(rankMsg,128,"无排名")
-
- 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 %s",name,g_buffer,rankMsg)
- set_hudmessage(0, 255, 0, 0.10, 0.55, 0, 6.0, 10.0, 0.5, 0.15, HUD_CHANNEL)
- show_hudmessage(0, "%s",g_buffer)
- return PLUGIN_CONTINUE
- }
复制代码 |
|