Raised This Month: $ Target: $400
 0% 

[REQUEST] clean defuse kit off map on CT death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Riddick51PB
Member
Join Date: Mar 2006
Location: Lincoln, NE USA
Old 03-05-2006 , 15:03   [REQUEST] clean defuse kit off map on CT death
Reply With Quote #1

on CT death, clean defuse kit off of map.

is it possible to make it a very clean, streamlined plugin that doesn't require excessive cpu?
Riddick51PB is offline
Send a message via AIM to Riddick51PB Send a message via MSN to Riddick51PB Send a message via Yahoo to Riddick51PB
VEN
Veteran Member
Join Date: Jan 2005
Old 03-05-2006 , 16:30  
Reply With Quote #2

Code:
// Warning: plugin would cause defkit strip on fun give_item "item_thighpack"! // Fakemeta module required #include <amxmodx> #include <fakemeta> #define CVAR "amx_nodefkitdrop_ondeath" #define DKIT "models/w_thighpack.mdl" public plugin_init() {     register_plugin("No Defuser Drop on Death", "0.1", "VEN")     register_forward(FM_SetModel, "forward_set_model")     register_cvar(CVAR, "1") } public forward_set_model(entid, model[]) {     if (equal(model, DKIT) && get_cvar_num(CVAR))         engfunc(EngFunc_RemoveEntity, entid) }
VEN is offline
Reply



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 22:39.


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