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

CT can pick C4


Post New Thread Reply   
 
Thread Tools Display Modes
VEN
Veteran Member
Join Date: Jan 2005
Old 03-22-2006 , 10:07  
Reply With Quote #11

In the code above return PLUGIN_HANDLED in touch function would block collecting of any weapon.

Also weapon_c4 entity should be removed either.
VEN is offline
kinsprite2
Junior Member
Join Date: Mar 2006
Old 03-23-2006 , 00:22  
Reply With Quote #12

Quote:
Originally Posted by VEN
In the code above return PLUGIN_HANDLED in touch function would block collecting of any weapon.

Also weapon_c4 entity should be removed either.
fixed it. thanks
kinsprite2 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-23-2006 , 11:47  
Reply With Quote #13

You didn't listen.
"weapon_c4" is actual C4 weapon entity, you should remove it after removing it's box in other case your code may be exploited.
And even if no one know how to exploit it, it's not nice since it leads to edicts overflow.
VEN is offline
kinsprite2
Junior Member
Join Date: Mar 2006
Old 03-23-2006 , 19:31  
Reply With Quote #14

Quote:
Originally Posted by VEN
You didn't listen.
"weapon_c4" is actual C4 weapon entity, you should remove it after removing it's box in other case your code may be exploited.
And even if no one know how to exploit it, it's not nice since it leads to edicts overflow.

use remove_entity_name("weapon_c4") ?
if there are more than one C4 in the game, what will happen ?
Thank you very much.
kinsprite2 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-23-2006 , 23:36  
Reply With Quote #15

This is bad coding. Use register_touch or something and repost. Thanks.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 05:57.


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