Raised This Month: $ Target: $400
 0% 

[SOLVED] [CS] remove multiple C4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-27-2013 , 05:34   Re: [CS] remove multiple C4
Reply With Quote #2

1st you have to stop using fakemeta_util

Then, use a loop :

PHP Code:
#include <engine>
#tryinclude <cstrike_pdatas>

#if !defined _cbaseentity_included
        #assert Cstrike Pdatas and Offsets library required! Read the below instructions:   \
                
1. Download it at forums.alliedmods.net/showpost.php?p=1712101#post1712101   \
                
2. Put it into amxmodx/scripting/include/ folder   \
                
3. Compile this plugin locallydetailswiki.amxmodx.org/index.php/Compiling_Plugins_%28AMX_Mod_X%29   \
                
4. Install compiled plugindetailswiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Installing
#endif

public RemoveC4All()
{
    new 
grenade FM_NULLENT
    
while( (grenade find_ent_by_class(grenade"grenade")) )
    {
        if( 
get_pdata_bool(grenadem_bIsC4XO_CGRENADE) )
        {
            
remove_entity(grenade)
        }
    }

Needed files are there : http://forums.alliedmods.net/showpos...01#post1712101
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 20:38.


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