De_rats
DarkGL
22.05.2010
może tak
lub
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Home"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(5.0,"delete",1)
}
public delete(){
new name[32]
get_mapname(name,31)
new pos = 0;
if((pos=containi(name,"rats")) != -1){
new ent = -1;
do{
ent = find_ent_by_class (-1, "func_door_rotating")
if(ent == 0){
break;
}
remove_entity(ent)
ent = find_ent_by_class (-1, "func_door")
if(ent == 0){
break;
}
remove_entity(ent)
}
while(true)
}
}
lub
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Home"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(5.0,"delete",1)
}
public delete(){
new name[32]
get_mapname(name,31)
new pos = 0;
if((pos=containi(name,"rats")) != -1){
remove_entity_name("func_door_rotating")
remove_entity_name("func_door")
}
}