|
Author
|
Message
|
|
Senior Member
|

02-04-2009
, 08:24
remove monsters
|
#1
|
I use this to remove monsters in an area
but this doesn't work for snarks
monster_snark?
Quote:
RegisterHam(Ham_Touch, "func_monsterclip", "fw_monsterkill")
public fw_monsterkill(touched, toucher){
if (!pev_valid(toucher))
return FMRES_IGNORED
static classname[32]
pev(toucher, pev_classname, classname, sizeof classname - 1)
if(equali(classname, "monster_")){
set_pev(toucher, pev_flags, pev(toucher, pev_flags) | FL_KILLME);
client_print(0, print_chat, "monster killed")
}
return FMRES_IGNORED
}
|
|
|
|
|