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

Deathrun proplem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
UaExFanTasY
Senior Member
Join Date: Mar 2013
Location: UAE
Old 06-09-2013 , 14:35   Deathrun proplem
Reply With Quote #1

hi everyone


in my deathrun server


some map's have bunnyhop place

so what people do is dropping thier usp

then the bunnyhop keep going up and down



Please

Someone one make a plugin to block drop usp (when press g usp never drop)

ive searching for it and found nothing

and i dont know if someone make it before or no


thanks <3

Last edited by UaExFanTasY; 06-09-2013 at 14:35.
UaExFanTasY is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 06-09-2013 , 16:27   Re: Deathrun proplem
Reply With Quote #2

PHP Code:
#include <amxmodx>

#define PLUGIN "Block Drop"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("drop""Block")
}

public 
Block()
{
    return 
PLUGIN_HANDLED

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
UaExFanTasY
Senior Member
Join Date: Mar 2013
Location: UAE
Old 06-10-2013 , 05:15   Re: Deathrun proplem
Reply With Quote #3

excellent

always on top
UaExFanTasY is offline
sanimare
Senior Member
Join Date: Sep 2010
Old 12-17-2013 , 11:35   Re: Deathrun proplem
Reply With Quote #4

Quote:
Originally Posted by pokemonmaster View Post
PHP Code:
#include <amxmodx>

#define PLUGIN "Block Drop"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("drop""Block")
}

public 
Block()
{
    return 
PLUGIN_HANDLED

Not working at all. I can't drop usp with G button, or whatever, but when on map, for example deathrun_zic_zac, on bhop when i get dead on trap usp drops and trap bugging top/down. If u have some fix for this please write. Only fix for now is deathrun_giveusp 0
sanimare is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-17-2013 , 11:46   Re: Deathrun proplem
Reply With Quote #5

Not working at all? It is working just like the original request asked.

Anyways, there are a couple different codes here that will remove a weapon that is dropped so it it can't be picked up. Search for Drop or Weapon Drop.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Commy
Junior Member
Join Date: Apr 2013
Old 12-17-2013 , 14:12   Re: Deathrun proplem
Reply With Quote #6

http://forums.alliedmods.net/showthread.php?p=422571

Has worked for me.
Commy is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 12-17-2013 , 18:57   Re: Deathrun proplem
Reply With Quote #7

Quote:
Originally Posted by sanimare View Post
Not working at all. I can't drop usp with G button, or whatever, but when on map, for example deathrun_zic_zac, on bhop when i get dead on trap usp drops and trap bugging top/down. If u have some fix for this please write. Only fix for now is deathrun_giveusp 0
Try this ...
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

//#define REMOVE_USP

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Touch"func_door""fw_TouchPre"0)
    
RegisterHam(Ham_Touch"func_door_rotating""fw_TouchPre"0)
}

public 
fw_TouchPre(iEntiToucher)
{
    static 
szClassName[32]
    
pev(iToucherpev_classnameszClassName31)
    
    
server_print("classname %s"szClassName)
    
    
//static const m_iId = 43
    
    
if(equal(szClassName"weaponbox"))
    {
        
server_print("Touch blocked")
        
        
//server_print("%d", get_pdata_int(iToucher, m_iId, 4)) // wierd? gives 0?!
        #if defined REMOVE_USP
            
engfunc(EngFunc_RemoveEntityiToucher)
        
#endif
        
return HAM_SUPERCEDE
    
}
    
    return 
HAM_IGNORED

I got a wierd problem
this get_pdata_int(iToucher, m_iId, 4) gives 0!
Did the offset change with the hlds update ?
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster 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 22:31.


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