下面是引用 n5427114 於 2014-07-28 19:47 發表的 :
源碼在這供各位參考
跟你說了是換行的問題, 也給了篇文章你看, 竟然也察覺不到問題所在? 即使察覺不到, 那你有沒有把SMA嘗試重新換行? 顯然地沒有.
我看到的是這樣子:
複製程式
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <xs>
#include <fakemeta>
#include <fun>
#include <engine>
#include <hamsandwich>
const HideWeapon_Flags = 1
new cvar_removedropped
new g_time[33]
public plugin_init()
{
register_plugin("amx_respawn","2.0beta","Tonyyoung")
�@�@�@�@register_forward(FM_SetModel, "fw_SetModel")
RegisterHam(Ham_Spawn, "player", "fw_Spawn_Post", 1)
�@ cvar_removedropped = register_cvar("remove_dropped", "15.0")
}
public fw_Spawn_Post(id)
{
if (is_user_alive(id) && is_user_connected(id))
{
cs_set_user_money(id, cs_get_user_money(id) + 500)
}
}
public fw_SetModel(entity, const model[])
{
if (!pev_valid(entity)) return FMRES_IGNORED
if (strlen(model) < 8) return FMRES_IGNORED;
new ent_classname[32]
pev(entity, pev_classname, ent_classname, charsmax(ent_classname))
if (equal(ent_classname, "weaponbox"))
{
set_pev(entity, pev_nextthink, get_gametime() + g_weapons_stay)
return FMRES_IGNORED
}
return FMRES_IGNORED
}