引用 | 编辑
fouury
2011-07-20 03:35 |
1楼
▲ ▼ |
复制程式
strip_user_weapons(index)//index适用定义玩家参数(id, attacker等....) #include:fun 可是我还是用习惯了......... x0 |
引用 | 编辑
HsK
2011-07-20 07:43 |
2楼
▲ ▼ |
下面是引用 fouury 于 2011-07-20 03:35 发表的 : fun 不是弱 首先..我们不可原创做出类似 fun_amxx.dll 的东西... 只是 fakemeta 太强 因一个 strip_user_weapons 去用 fun 只令game 有更多无谓的读取.... 相反, 如果只是小插件, 插件本身又没有用 fakemeta 用 fun 便比较好了.... fakemeta 写法 stock fm_strip_user_weapons(index) { new ent = fm_create_entity("player_weaponstrip"); if (!pev_valid(ent)) return 0; dllfunc(DLLFunc_Spawn, ent); dllfunc(DLLFunc_Use, ent, index); engfunc(EngFunc_RemoveEntity, ent); return 1; } stock fm_create_entity(const classname[]) { return engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, classname)) } x1 |