下面是引用 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
}