Raised This Month: $ Target: $400
 0% 

Remove specific weapon from ground?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 12-22-2010 , 07:52   Re: Remove specific weapon from ground?
Reply With Quote #1

I mean, where do I add it to the code?


PHP Code:
public SetModel(entmodel[])
{
    
// here?

    
if (!equal(model"models/w_awp.mdl"))
        return 
FMRES_IGNORED;
    
    
// I wonder if remove_entity() would be better in this case
    
set_pev(entpev(entpev_flags) | FL_KILLME);
    
    return 
FMRES_SUPERCEDE;

vL. is offline
Howdy!
Senior Member
Join Date: Feb 2007
Old 12-22-2010 , 11:35   Re: Remove specific weapon from ground?
Reply With Quote #2

Quote:
Originally Posted by vL. View Post
I mean, where do I add it to the code?


PHP Code:
public SetModel(entmodel[])
{
    
// here?

    
if (!equal(model"models/w_awp.mdl"))
        return 
FMRES_IGNORED;
    
    
// I wonder if remove_entity() would be better in this case
    
set_pev(entpev(entpev_flags) | FL_KILLME);
    
    return 
FMRES_SUPERCEDE;

Search results will tell that to you. Its like in any other plugin that uses certain maps only.

Doesn't amxx have maps configs to do this also?
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! 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 10:44.


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