AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   remove monsters (https://forums.alliedmods.net/showthread.php?t=85005)

hzqst 02-04-2009 08:24

remove monsters
 
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
}


All times are GMT -4. The time now is 01:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.