|
楼主 |
发表于 2008-7-12 02:04:35
|
显示全部楼层
来自 中国–山东–济南
回复: 修改游戏类型插件
[PHP]#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
public plugin_init()
{
register_plugin("Game Namer","Version 1.0","NeuroToxin");
register_cvar("amx_gamename","【游戏名字】");
register_forward(FM_GetGameDescription,"GameDesc");
}
public GameDesc()
{
new gamename[32];
get_cvar_string("amx_gamename",gamename,31);
forward_return(FMV_STRING,gamename);
return FMRES_SUPERCEDE;
}[/PHP]
源码 |
|