AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQUEST] clean defuse kit off map on CT death (https://forums.alliedmods.net/showthread.php?t=24986)

Riddick51PB 03-05-2006 15:03

[REQUEST] clean defuse kit off map on CT death
 
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?

VEN 03-05-2006 16:30

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) }


All times are GMT -4. The time now is 22:39.

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