Raised This Month: $ Target: $400
 0% 

remove monsters


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hzqst
Senior Member
Join Date: Jul 2008
Old 02-04-2009 , 08:24   remove monsters
Reply With Quote #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
}
hzqst is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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