Raised This Month: $ Target: $400
 0% 

Other way: remove dropped weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-31-2013 , 04:38   Other way: remove dropped weapons
Reply With Quote #1

I find a 2 ways on the forum for this issue:

PHP Code:
1. register_forward(FM_SetModel"Fw_SetModel")
2. RegisterHamHam_Touch"weaponbox""WeaponBox_Touch"); 
But they not always appropriate. If you use some plugins as real nade drop or drop all weapons on die and etc. the weapon (or some weapon) still on map...

Need a new way for this. Simple idea:

PHP Code:
public plugin_init() 

        
register_plugin(PLUGINVERSIONAUTHOR

        
set_task((randomnum(1.03.0), "remove_weap"___"b"// do not remove all weapons at once. More realistic! :)


public 
remove_weap()

       
// find a weapon on map (prefix "w_") - i don't know, just a suggest
       // remove weapon from map (it does not matter how it got on the map)
       // INCLUDE: all weapons (shotguns, pistols, snipers, etc), HE, SG, FB nades and shield
       // EXCLUDE: planted / dropped c4, defuse kit

 

Who can help with this?
__________________
sorry my bad english...

Last edited by alonelive; 01-31-2013 at 04:57.
alonelive 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:34.


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