Raised This Month: $ Target: $400
 0% 

Solved [Req] Weapon remove


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-07-2020 , 16:04   [Req] Weapon remove
Reply With Quote #1

Hey, i know there might be a plugin like this, but i tried to search for it but i couldnt find it, basically i need a plugin when u drop a weapon i want it to disappear from the ground, no one can see it or pick it, removed from the game the moment u drop it.

Last edited by elmedin; 05-12-2020 at 01:35.
elmedin is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-12-2020 , 00:51   Re: [Req] Weapon remove
Reply With Quote #2

Bump
elmedin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-12-2020 , 00:57   Re: [Req] Weapon remove
Reply With Quote #3

Close to what you want

https://forums.alliedmods.net/showpo...9&postcount=15
__________________
Bugsy is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-12-2020 , 01:11   Re: [Req] Weapon remove
Reply With Quote #4

Quote:
Originally Posted by Bugsy View Post
Yes this is working great, but 1 problem, i dont want to matter if the weapon has ammo or not, the moment u drop it it disappears
elmedin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-12-2020 , 01:31   Re: [Req] Weapon remove
Reply With Quote #5

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

new const Version[] = "0.1";

#define IsWeaponbox(%1)    ((%1[0]=='w') && (%1[3]=='p') && (%1[8]=='x'))

public plugin_init() 
{
    
register_plugin"Remove Dropped Weapons" Version "bugsy" );
    
    
register_forwardFM_SetModel "SetModel" );
}

public 
SetModeliEntity , const szModel[] ) 
{
    if ( !
pev_validiEntity ) )
        return 
FMRES_IGNORED;
        
    static 
szClassname10 ];
    
    
peviEntity pev_classname szClassname charsmaxszClassname ) );
    
    if ( 
IsWeaponboxszClassname ) )
    {
        
set_peviEntity pev_flags FL_KILLME );
        
dllfuncDLLFunc_Think iEntity );
    }
    
    return 
FMRES_IGNORED;

__________________
Bugsy is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-12-2020 , 01:35   Re: [Req] Weapon remove
Reply With Quote #6

Quote:
Originally Posted by Bugsy View Post
PHP Code:
#include <amxmodx>
#include <engine>
#include <cstrike>
#include <fakemeta>

new const Version[] = "0.1";

#define IsWeaponbox(%1)    ((%1[0]=='w') && (%1[3]=='p') && (%1[8]=='x'))

public plugin_init() 
{
    
register_plugin"Remove Dropped Weapons" Version "bugsy" );
    
    
register_forwardFM_SetModel "SetModel" );
}

public 
SetModeliEntity , const szModel[] ) 
{
    if ( !
pev_validiEntity ) )
        return 
FMRES_IGNORED;
        
    static 
szClassname10 ];
    
    
peviEntity pev_classname szClassname charsmaxszClassname ) );
    
    if ( 
IsWeaponboxszClassname ) )
    {
        
set_peviEntity pev_flags FL_KILLME );
        
dllfuncDLLFunc_Think iEntity );
    }
    
    return 
FMRES_IGNORED;

Works perfect, thanks <3
elmedin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-12-2020 , 01:37   Re: [Req] Weapon remove
Reply With Quote #7

Hang on, there's an issue, its going to delete C4 too.
__________________
Bugsy is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-12-2020 , 01:54   Re: [Req] Weapon remove
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
Hang on, there's an issue, its going to delete C4 too.
Nah its ok lmao
elmedin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-12-2020 , 01:56   Re: [Req] Weapon remove
Reply With Quote #9

Ok..
__________________
Bugsy 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 12:06.


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