下面是引用 apple321s 於 2011-06-17 20:39 發表的 :
小弟還是不明白,能以下當例子嗎?
要我幫您寫插件也不是這樣用騙的=w=
-----------------------------------------------------------
原本的
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
public plugin_init()
{
register_plugin("name", "1.0", "bill")
RegisterHam(Ham_Spawn, "player", "fwd_PlayerSpawn", 1)
}
public fwd_PlayerSpawn(id)
{
cs_set_user_money(id, 16000, 1)
}
--------------------------------------------------------
後來的
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
new XXX
public plugin_init()
{
register_plugin("name", "1.0", "bill")
XXX = register_cvar("F|_|C|<", "16000")
RegisterHam(Ham_Spawn, "player", "fwd_PlayerSpawn", 1)
}
public fwd_PlayerSpawn(id)
{
cs_set_user_money(id,get_pcvar_num(XXX), 1)
}
----------------------------------------------------
之後輸入指令
F|_|C|< 99999
就有99999元可以用了