搜索
查看: 2166|回复: 4

求 删除地图枪支代码

[复制链接]
发表于 2009-8-1 15:43:10 | 显示全部楼层 |阅读模式 来自 山东临沂
谁有删除地图自带枪支的代码?共享一个如何?谢谢!
发表于 2009-8-1 15:56:14 | 显示全部楼层 来自 北京海淀

  1. #include <amxmodx>
  2. #include <engine>

  3. #define PLUGIN        "Test"
  4. #define AUTHOR        "Jim"
  5. #define VERSION        "1.0"

  6. public plugin_init()
  7. {
  8.         register_plugin(PLUGIN, VERSION, AUTHOR)
  9.         new const armoury_entity[] = "armoury_entity"
  10.         new ent = find_ent_by_class(get_maxplayers() + 1, armoury_entity)
  11.         while(ent)
  12.         {
  13.                 remove_entity(ent)
  14.                 ent = find_ent_by_class(ent, armoury_entity)
  15.         }
  16. }
复制代码
回复

使用道具 举报

 楼主| 发表于 2009-8-2 17:13:29 | 显示全部楼层 来自 山东临沂
:victory:谢谢楼上的。
回复

使用道具 举报

发表于 2009-8-2 19:37:10 | 显示全部楼层 来自 广东深圳
啊。。。直接改地图文件不行么??
回复

使用道具 举报

 楼主| 发表于 2009-8-5 14:50:13 | 显示全部楼层 来自 山东临沂
这多省事啊。
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表