Raised This Month: $ Target: $400
 0% 

Help with this error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-19-2013 , 04:39   Re: Help with this error
Reply With Quote #1

Oh, pokemonmaster code lol.


Try this :

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

#pragma semicolon 1

#define PLUGIN ""
#define VERSION "0.0.1"

const matWood 1;

const 
XO_CBREAKABLE 4;
const 
m_Material 36;

public 
plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );

    new 
mapname[32];
    
get_mapname(mapnamecharsmax(mapname));

    if( 
equali(mapname"deathrun_forest") )
    {
        new 
ent;
        while( (
ent find_ent_by_class(ent"func_breakable")) )
        {
            if( ~
entity_get_int(entEV_INT_spawnflags) & SF_BREAK_TRIGGER_ONLY && get_pdata_int(entm_MaterialXO_CBREAKABLE) == matWood )
            {
                
remove_entity(ent);
            }
        }
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 05-19-2013 , 06:22   Re: Help with this error
Reply With Quote #2

Quote:
Originally Posted by ConnorMcLeod View Post
Oh, pokemonmaster code lol.


Try this :

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

#pragma semicolon 1

#define PLUGIN ""
#define VERSION "0.0.1"

const matWood 1;

const 
XO_CBREAKABLE 4;
const 
m_Material 36;

public 
plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );

    new 
mapname[32];
    
get_mapname(mapnamecharsmax(mapname));

    if( 
equali(mapname"deathrun_forest") )
    {
        new 
ent;
        while( (
ent find_ent_by_class(ent"func_breakable")) )
        {
            if( ~
entity_get_int(entEV_INT_spawnflags) & SF_BREAK_TRIGGER_ONLY && get_pdata_int(entm_MaterialXO_CBREAKABLE) == matWood )
            {
                
remove_entity(ent);
            }
        }
    }

Thanks very much ConnorMcLeod it works perfectly
__________________
Balck is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-19-2013 , 17:13   Re: Help with this error
Reply With Quote #3

Answer to your PM :

Code:
// CBaseEntity -> CBaseDelay -> CBreakable
// Linux +4
stock const XO_CBREAKABLE = 4;

enum _:Explosions{ expRandom, expDirected}
enum _:Materials{ matGlass = 0, matWood, matMetal, matFlesh, matCinderBlock, matCeilingTile, matComputer, matUnbreakableGlass, matRocks, matNone, matLastMaterial }

stock const m_Material = 36; // Materials
stock const m_Explosion = 37; // Explosions
stock const m_idShard = 38;
stock const m_angle = 39;
stock const m_iszGibModel = 40;
stock const m_iszSpawnObject = 41;
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 05-20-2013 , 01:49   Re: Help with this error
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Answer to your PM :

Code:
// CBaseEntity -> CBaseDelay -> CBreakable
// Linux +4
stock const XO_CBREAKABLE = 4;

enum _:Explosions{ expRandom, expDirected}
enum _:Materials{ matGlass = 0, matWood, matMetal, matFlesh, matCinderBlock, matCeilingTile, matComputer, matUnbreakableGlass, matRocks, matNone, matLastMaterial }

stock const m_Material = 36; // Materials
stock const m_Explosion = 37; // Explosions
stock const m_idShard = 38;
stock const m_angle = 39;
stock const m_iszGibModel = 40;
stock const m_iszSpawnObject = 41;
thanks
__________________
Balck 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 16:25.


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