Raised This Month: $ Target: $400
 0% 

strip_user_weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jay7
Senior Member
Join Date: Jun 2004
Old 02-10-2006 , 03:51   strip_user_weapons
Reply With Quote #1

a simple script to strip default weapons.
jay7 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-10-2006 , 07:55  
Reply With Quote #2

Quote:
default weapons
I.e. knife, glock (T), usp (CT)?
VEN is offline
jay7
Senior Member
Join Date: Jun 2004
Old 02-10-2006 , 09:31  
Reply With Quote #3

glock and usp
jay7 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-10-2006 , 11:34  
Reply With Quote #4

On spawn?
But not strip knife and c4?
VEN is offline
jay7
Senior Member
Join Date: Jun 2004
Old 02-10-2006 , 11:38  
Reply With Quote #5

on respawn/spawn but not c4 or knife. and also on no weapon drop plugin can you erase defusal kits too?
jay7 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-10-2006 , 12:43  
Reply With Quote #6

Quote:
glock and usp
Is this mean strip glock from T and usp from CT? Or even vice versa too (glock from CT and usp from T)?
Quote:
also on no weapon drop plugin can you erase defusal kits too?
Why not post in plugin's thread?

Last edited by VEN; 03-05-2007 at 12:41.
VEN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-10-2006 , 12:56  
Reply With Quote #7

Just restrict the kit.
__________________
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
VEN
Veteran Member
Join Date: Jan 2005
Old 02-11-2006 , 05:46  
Reply With Quote #8

He want restrict kit drop but not kit.
Code:
// Engine module required #include <amxmodx> #include <engine> public plugin_init() {     register_plugin("Strip Glock(T) and Usp(CT) on Spawn", "0.1", "VEN")     register_event("ResetHUD", "event_hud_reset", "be") } public event_hud_reset(id) {     set_task(0.1, "task_strip_glock_usp", id) } public task_strip_glock_usp(id) {     if (!is_user_alive(id))         return     new weapon_name[15]     switch (get_user_team(id)) {         case 1: weapon_name = "weapon_glock18"         case 2: weapon_name = "weapon_usp"         default: return     }         new weapon = find_ent_by_owner(-1, weapon_name, id)     if (!weapon)         return     engclient_cmd(id, "drop", weapon_name)     new weaponbox = entity_get_edict(weapon, EV_ENT_owner)     if (!weaponbox || weaponbox == id)         return     remove_entity(weaponbox)     remove_entity(weapon) }
Code:
// Warning: plugin would cause defkit strip on fun give_item "item_thighpack"! // Fakemeta module required #include <amxmodx> #include <fakemeta> #define CVAR "amx_nodefkitdrop_ondeath" #define DKIT "models/w_thighpack.mdl" public plugin_init() {     register_plugin("No Defuser Drop on Death", "0.1", "VEN")     register_forward(FM_SetModel, "forward_set_model")     register_cvar(CVAR, "1") } public forward_set_model(entid, model[]) {     if (equal(model, DKIT) && get_cvar_num(CVAR))         engfunc(EngFunc_RemoveEntity, entid) }
VEN is offline
jay7
Senior Member
Join Date: Jun 2004
Old 02-13-2006 , 07:57  
Reply With Quote #9

thanks VEN both scripts work fine.
jay7 is offline
Identity
Member
Join Date: Mar 2007
Old 03-05-2007 , 00:56   Re: strip_user_weapons
Reply With Quote #10

first example by VEN is exploitable: if player presses drop weapon button fast at team join, weapon dropped to the ground before strip and he can pick it up later.
Identity is offline
Old 03-05-2007, 06:32
amxx4life
This message has been deleted by VEN. Reason: meaningless spam-like post, read the site/forum rules
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:16.


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