Raised This Month: $51 Target: $400
 12% 

Entity touch plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kovalski12
Junior Member
Join Date: Dec 2014
Old 01-13-2015 , 07:01   Entity touch plugin
Reply With Quote #1

Hello.I have big problem on my DR server, when player dies on bhop usp drops on bhop platform and then it bug bhop,it constantly goes up and down(i cant remove usp cuz players are used to it and its good for exploring maps) .... I need something to fix that,to make plugin to destroy usp after death or to make it so it can be on the top of platform but it wouldnt trigger bhop platfom to go down.Can anyone help me ?
P.S Sorry for bad english
Kovalski12 is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 01-14-2015 , 02:59   Re: Entity touch plugin
Reply With Quote #2

Quote:
Originally Posted by Kovalski12 View Post
Hello.I have big problem on my DR server, when player dies on bhop usp drops on bhop platform and then it bug bhop,it constantly goes up and down(i cant remove usp cuz players are used to it and its good for exploring maps) .... I need something to fix that,to make plugin to destroy usp after death or to make it so it can be on the top of platform but it wouldnt trigger bhop platfom to go down.Can anyone help me ?
P.S Sorry for bad english
Use hamsandwich .. Hook Pre-Death .. Strip Weapons of the victim
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
Kovalski12
Junior Member
Join Date: Dec 2014
Old 01-17-2015 , 08:33   Re: Entity touch plugin
Reply With Quote #3

Can anyone do it ? I need it to removes/destroys only USP after death,i have my reasons.Thanks guys
Kovalski12 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 01-17-2015 , 13:47   Re: Entity touch plugin
Reply With Quote #4

This code removes the USP whenever it's dropped, because someone can drop it advisedly on the block and cause the problem again.
PHP Code:
#include <amxmodx>
#include <fakemeta>

new const WMODEL[] = "models/w_usp.mdl"

public plugin_init()
{
    
register_plugin("Remove Dropped xm1014""1.0""Flicker")
    
register_forward(FM_SetModel"fwdSetModel")
}

public 
fwdSetModel(entmodel[])
{
    if(!
pev_valid(ent))
        return 
FMRES_IGNORED
    
    
new id pev(entpev_owner)
    
    if(!
pev_valid(id) || !equali(modelWMODEL))
        return 
FMRES_IGNORED
    
    set_task
(0.1"delayedRemove"ent)
    return 
FMRES_IGNORED


public 
delayedRemove(ent)
    
engfunc(EngFunc_RemoveEntityent
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Kovalski12
Junior Member
Join Date: Dec 2014
Old 01-17-2015 , 13:53   Re: Entity touch plugin
Reply With Quote #5

Quote:
Originally Posted by Flick3rR View Post
This code removes the USP whenever it's dropped, because someone can drop it advisedly on the block and cause the problem again.
PHP Code:
#include <amxmodx>
#include <fakemeta>

new const WMODEL[] = "models/w_usp.mdl"

public plugin_init()
{
    
register_plugin("Remove Dropped xm1014""1.0""Flicker")
    
register_forward(FM_SetModel"fwdSetModel")
}

public 
fwdSetModel(entmodel[])
{
    if(!
pev_valid(ent))
        return 
FMRES_IGNORED
    
    
new id pev(entpev_owner)
    
    if(!
pev_valid(id) || !equali(modelWMODEL))
        return 
FMRES_IGNORED
    
    set_task
(0.1"delayedRemove"ent)
    return 
FMRES_IGNORED


public 
delayedRemove(ent)
    
engfunc(EngFunc_RemoveEntityent
Thank you so much bro <3

Last edited by Kovalski12; 01-17-2015 at 13:54. Reason: Typo
Kovalski12 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 04:38.


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