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

[REQ] Simple plugin to remove bomb plant zones on de_ maps.


Post New Thread Reply   
 
Thread Tools Display Modes
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 04-09-2010 , 13:09   Re: [REQ] Simple plugin to remove bomb plant zones on de_ maps.
Reply With Quote #11

Search next time:

http://forums.alliedmods.net/showthread.php?p=803906
KadiR is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 04-09-2010 , 13:10   Re: [REQ] Simple plugin to remove bomb plant zones on de_ maps.
Reply With Quote #12

Search next time:

http://forums.alliedmods.net/showthread.php?p=803906
KadiR is offline
k1z
Junior Member
Join Date: Apr 2010
Old 04-09-2010 , 13:40   Re: [REQ] Simple plugin to remove bomb plant zones on de_ maps.
Reply With Quote #13

I've put that plugin in but i don't know how it works :S when i type bs_menu a menu comes up, but nothing happends when i press them, and then i do rcon sv_restart 1 and the servers crashes

I don't want to delete the bombsite, i just want to delete the green boxes in the site e.g. dust2 B

Last edited by k1z; 04-09-2010 at 13:42.
k1z is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-09-2010 , 14:21   Re: [REQ] Simple plugin to remove bomb plant zones on de_ maps.
Reply With Quote #14

Try :

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define VERSION "0.0.2"

public plugin_init()
{
    
register_plugin("No BombSites"VERSION"ConnorMcLeod")

    new 
iEntiTargetszTarget[32]
    while( (
iEnt engfunc(EngFunc_FindEntityByStringiEnt"classname""func_bomb_target")) )
    {
        
pev(iEntpev_targetszTargetcharsmax(szTarget))
        
iTarget 0

        
while( (iTarget engfunc(EngFunc_FindEntityByStringiTarget"targetname"szTarget)) )
        {
            
engfunc(EngFunc_RemoveEntityiTarget)
        }

        
engfunc(EngFunc_RemoveEntityiEnt)
    }

    while( (
iEnt engfunc(EngFunc_FindEntityByStringiEnt"classname""info_bomb_target")) )
    {
        
pev(iEntpev_targetszTargetcharsmax(szTarget))
        
iTarget 0

        
while( (iTarget engfunc(EngFunc_FindEntityByStringiTarget"targetname"szTarget)) )
        {
            
engfunc(EngFunc_RemoveEntityiTarget)
        }

        
engfunc(EngFunc_RemoveEntityiEnt)
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
flamin
BANNED
Join Date: Jul 2009
Location: Los Teques
Old 05-08-2010 , 09:43   Re: [REQ] Simple plugin to remove bomb plant zones on de_ maps.
Reply With Quote #15

@ConnorMcLeod Your code works perfect, but i want to disable and activate the c4 via cvar can?

Because i just want use this code in an instance of the game and i tested with amx_pausecfg and does not break the code, the c4 continues to be removed...
flamin 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 18:16.


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