Raised This Month: $ Target: $400
 0% 

I need this plugin for deathrun


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-18-2015 , 09:36   Re: I need this plugin for deathrun
Reply With Quote #2

Try with this, not tested. It will not remove breakables that are only destroyable by activating them via button.
PHP Code:
#include <amxmodx>
#include <fakemeta>

#pragma semicolon 1

new PLUGIN[]  = "";
new 
AUTHOR[]  = "";
new 
VERSION[] = "0.00";

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    new 
pEnt get_maxplayers();
    while((
pEnt engfunc(EngFunc_FindEntityByStringpEnt"classname""func_breakable")) > 0)
    {
        if(!(
pev(pEntpev_spawnflags) & SF_BREAK_TRIGGER_ONLY))
            
engfunc(EngFunc_RemoveEntitypEnt);
    }


Last edited by klippy; 07-18-2015 at 09:36.
klippy is offline
 



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 23:18.


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