搜索
查看: 1663|回复: 1

如何定义插件在屏幕上显示信息的字号呢?

[复制链接]
发表于 2006-11-5 09:41:38 | 显示全部楼层 |阅读模式 来自 中国–辽宁–丹东
比如这个TimeProjector,想让它显示的字号小一些,应该如何定义呢?

/*
*  AMX Mod script.
*
* (c) Copyright 2003, ST4life
* This file is provided as is (no warranties).
*/
#include <amxmod>
/*
* TimeProjector displays the remaining time and the next map on the top right corner of the client
* display as a hudmessage.
*
* History:
*
* v0.1: - first release
*/

public show_timer(){
   new nextmap[32]
   get_cvar_string("amx_nextmap",nextmap,31)
   new timeleft = get_timeleft()
   set_hudmessage(255,255,255,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13)
   show_hudmessage(0,"Time remaining: %d:%02d^nNext map: %s",timeleft / 60, timeleft % 60,nextmap)
   return PLUGIN_CONTINUE
}
public plugin_init()
{
   register_plugin("TimeProjector","0.1","ST4life")
   set_task(1.0, "show_timer",0,"",0,"b")
   return PLUGIN_CONTINUE
}
发表于 2006-11-5 11:22:07 | 显示全部楼层 来自 中国–北京–北京–海淀区

回复: 如何定义插件在屏幕上显示信息的字号呢?

hudmessage字号没法改
回复

使用道具 举报

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

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