複製內容到剪貼板
代碼:
public OnPluginStart()
{
HookConVarChange(FindConVar("z_difficulty"), Convar_Diff);
}
public Convar_Diff (Handle:convar, const String:oldValue[], const String:newValue[])
{
ServerCommand("exec %s" ,newValue)"
}
find a way to compile it .... Then in the cfg folder
create different cfg for each diffculty
easy.cfg , normal.cfg ,expert.cfg , advanced.cfg
type the cvars you want inside the cfg
[
本帖最後由 hihi1210 於 2012-7-12 03:58 編輯 ]