-	script	OnNPCKillEvent	-1,{
OnNPCKillEvent:
	if ( !getmapflag(strcharinfo(PC_MAP), mf_nopenalty) && getgroupid() == 4 ) {
		set .@mob, killedrid;
		set .@gmname$,strcharinfo(0);
		chanmsg("#system",""+strcharinfo(0)+": Killed a "+strmobinfo(1,.@mob)+".  GMs are prohibited to kill ANY mob at this server.  This action will be investigated by Admin.");
		dispbottom "~ You've killed "+strmobinfo(1,.@mob)+".  Please avoid. You are prohibited to kill ANY mob.  This event is being logged and you will be investigated.";
		query_sql "INSERT INTO gmlogs (`ldate`,`gmname`,`type`,`logtext`) VALUES ('"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"','"+escape_sql(.@gmname$)+"',1,'"+escape_sql(strmobinfo(1,.@mob))+"')";
	}
end;
}