Raised This Month: $ Target: $400
 0% 

Weapons remove from the ground


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
k!mo
New Member
Join Date: Apr 2006
Old 04-22-2006 , 07:32   Weapons remove from the ground
Reply With Quote #1

Hi i need a plugin which makes only this :
When a guy drops a weapons the weapons must removed autmotamically so thats nobdoby can take it again ^^ i use the search button but i find only plugins which doesnt work
k!mo is offline
Send a message via ICQ to k!mo
FrontLine
Member
Join Date: Apr 2006
Old 04-22-2006 , 07:33  
Reply With Quote #2

look at the deathmatch plugin...

FL.
__________________
FrontLine is offline
Send a message via MSN to FrontLine
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-22-2006 , 07:51  
Reply With Quote #3

This will remove weapons right after they are dropped:
Code:
public pfn_touch(ptr, ptd) {     if(is_valid_ent(ptr) && is_valid_ent(ptd)) {         new classname[32]         entity_get_string(ptr,EV_SZ_classname,classname,31)         if(equali(classname,"weaponbox")) {                     new ents = entity_count();             for(new inum=0;inum<=ents;inum++) {                 if(!is_valid_ent(inum)) continue                 new class[51]                 entity_get_string(inum,EV_SZ_classname,class,50)                 if(containi(class,"weapon_") == -1) continue                 new owner = entity_get_edict(inum,EV_ENT_owner)                 if(ptr == owner)                     remove_entity(inum)             }             remove_entity(ptr)         }         else if(containi(classname,"weapon_") != -1)             remove_entity(ptr)     }     return PLUGIN_CONTINUE }
Requires Engine.

BJ.
__________________
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
k!mo
New Member
Join Date: Apr 2006
Old 04-22-2006 , 09:47   mhh
Reply With Quote #4

ok v3x but im sorry im not so good @ plugins i dont know what this is xD what i have to do with this ??
k!mo is offline
Send a message via ICQ to k!mo
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-22-2006 , 19:30  
Reply With Quote #5

Code:
#include <amxmodx> #include <engine>  public pfn_touch(ptr, ptd) {     if(is_valid_ent(ptr) && is_valid_ent(ptd)) {         new classname[32]         entity_get_string(ptr,EV_SZ_classname,classname,31)         if(equali(classname,"weaponbox")) {                     new ents = entity_count();             for(new inum=0;inum<=ents;inum++) {                 if(!is_valid_ent(inum)) continue                 new class[51]                 entity_get_string(inum,EV_SZ_classname,class,50)                 if(containi(class,"weapon_") == -1) continue                 new owner = entity_get_edict(inum,EV_ENT_owner)                 if(ptr == owner)                     remove_entity(inum)             }             remove_entity(ptr)         }         else if(containi(classname,"weapon_") != -1)             remove_entity(ptr)     }     return PLUGIN_CONTINUE }
Save it as pluginname.sma and compile it. It requires Engine in order to run.
__________________
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
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-22-2006 , 19:44  
Reply With Quote #6

@v3x: http://www.amxmodx.org/funcwiki.php?go=func&id=388 - For next time.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-22-2006 , 20:05  
Reply With Quote #7

That was like 2% of my code, the other 98% was by twisty.
__________________
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
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-22-2006 , 20:23  
Reply With Quote #8

well it's horrible v3x ok.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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:11.


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