Raised This Month: $51 Target: $400
 12% 

How to remove a func_


Post New Thread Reply   
 
Thread Tools Display Modes
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-07-2009 , 17:34   Re: How to remove a func_
Reply With Quote #11

Thanks ^^
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-07-2009 , 18:48   Re: How to remove a func_
Reply With Quote #12

Would be better:
Code:
// Removes all func_* entities public plugin_precache() {     register_forward(FM_Spawn, "FwdSpawn"); } public FwdSpawn(entity) {     if( pev_valid(entity) )     {         static classname[6];         pev(entity, pev_classname, classname, sizeof(classname) - 1);                 if( equal(classname, "func_") )         {             engfunc(EngFunc_RemoveEntity, entity);             return FMRES_SUPERCEDE;         }     }         return FMRES_IGNORED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 05-08-2009, 01:53
TitANious
This message has been deleted by TitANious.
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-08-2009 , 13:14   Re: How to remove a func_
Reply With Quote #13

It dont work it is tested..
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-08-2009 , 14:05   Re: How to remove a func_
Reply With Quote #14

PHP Code:
#include <hamsandwich>
 
new g_iFwdBuyZoneSpawn;
 
public 
plugin_precache()
        
g_iFwdBuyZoneSpawn RegisterHam(Ham_Spawn"func_buyzone""fwdBuyZoneSpawn");
 
public 
fwdBuyZoneSpawn(iEnt)
        return 
pev_valid(iEnt) ? HAM_SUPERCEDE HAM_IGNORED;
 
public 
plugin_init()
        
DisableHamForward(g_iFwdBuyZoneSpawn); 
__________________

Last edited by hleV; 05-08-2009 at 15:12. Reason: Fix'd.
hleV is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-08-2009 , 14:13   Re: How to remove a func_
Reply With Quote #15

That looks easy
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-08-2009 , 14:17   Re: How to remove a func_
Reply With Quote #16

Hmm 2 precache?
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-08-2009 , 14:29   Re: How to remove a func_
Reply With Quote #17

Quote:
Originally Posted by hleV View Post
PHP Code:
#include <hamsandwich>
 
new g_iFwdBuyZoneSpawn;
 
public 
plugin_precache()
        
g_iFwdBuyZoneSpawn RegisterHam(Ham_Spawn"func_buyzone""fwdBuyZoneSpawn");
 
public 
fwdBuyZoneSpawn(iEnt)
        return 
pev_valid(iEnt) ? HAM_SUPERCEDE HAM_IGNORED;
 
public 
plugin_precache()
        
DisableHamForward(g_iFwdBuyZoneSpawn); 
Non sense.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-08-2009 , 15:12   Re: How to remove a func_
Reply With Quote #18

That should have been plugin_init(). Fix'd.
__________________
hleV is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-08-2009 , 15:28   Re: How to remove a func_
Reply With Quote #19

Warnings..
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Tag mismatch on line 200
Warning: Tag mismatch on line 231
Header size:           1832 bytes
Code size:            16180 bytes
Data size:            16376 bytes
Stack/heap size:      16384 bytes; estimated max. usage=1036 cells (4144 bytes)
Total requirements:   50772 bytes

2 Warnings.
Done.
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-08-2009 , 15:45   Re: How to remove a func_
Reply With Quote #20

Quote:
Originally Posted by TitANious View Post
It dont work it is tested..
Did you use the exact code, or did u change it to check for func_buyzone?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 21:10.


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