|
发表于 2010-1-29 23:46:22
|
显示全部楼层
来自 中国–广东–汕尾
- #include <amxmodx>
- #include <amxmisc>
- #include <engine>
- #define PLUGIN "New Plug-In"
- #define VERSION "1.0"
- #define AUTHOR "zwfgdlc"
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- SetBombSites(false);
- }
- //by ConnorMcLeod
- stock SetBombSites( bool:bActive )
- {
- new iEnt = -1
- while( (iEnt = find_ent_by_class(iEnt, "func_bomb_target")) > 0 )
- {
- entity_set_int(iEnt, EV_INT_solid, bActive ? SOLID_TRIGGER : SOLID_NOT)
- }
- while( (iEnt = find_ent_by_class(iEnt, "info_bomb_target")) > 0 )
- {
- entity_set_int(iEnt, EV_INT_solid, bActive ? SOLID_TRIGGER : SOLID_NOT)
- }
- }
复制代码 |
|