Raised This Month: $95 Target: $400
 23% 

Amx_Strip *Update v1.13 (2/18/06)*


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   Geesu (62)
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-04-2005 , 19:47   Amx_Strip *Update v1.13 (2/18/06)*
Reply With Quote #1

Description

Strips the players weapons (as well as model o.O- no the model is NOT pornographic) and displays an HUD message to the whole server. Yes this is similar to amx_disarm, but it removes ALL weapons (not just knife).
NOTE - I did NOT use ANY part of the amx_disarm code during the writing of this plugin and any such similarities are strictly a coincidence.

Note Again:
The model is not mine.

Version
1.13

Commands
amx_strip <nick>

Modules Required:
Fun
Cstrike

Tested
Win32 Server - Works

Known Errors
None.

To Come
Compressing (finding new?) model.
Screenshots.

Thanks to:
v3x for some scripting stuff, and fixed ResetHUD + weapon_pickup functions.
GHW_Chronic for looking at my plugin, editing it, being all around sexy, and adding in
the de-girlified line - SO FUNNY, TY!.

Changelog
1.01 - Original Coding
1.02 - Fixed Strip Coding
1.03 - Added Model Coding
1.04 - Fixed Name Coding
1.05 - Fixed Model Coding
1.06 - Added Weapon_Pickup Function
1.07 - Added Description - Not a crucial update.
1.08 - Removed weapon_pickup function as it did not work - added unstrip command.
1.09 - Readded weapon_pickup function.
1.10 - Added ResetHUD function.
1.11 - Version edited, added find_ent_by_model command.
1.12 - Find_ent_by_model command removed - coding edited.
1.13 - Working version!!
Attached Files
File Type: zip model.zip (1.38 MB, 7929 views)
File Type: sma Get Plugin or Get Source (strip.sma - 5224 views - 3.9 KB)
Jordan is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 12-04-2005 , 20:04  
Reply With Quote #2

lol you didn't post what model was for, i'm assuming its for the person you stripped weapons from?
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-04-2005 , 20:09  
Reply With Quote #3

Oh yes, my mistake - the model turns from the Terrorist or Counter-Terrorist model to this:

Jordan is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-05-2005 , 01:08  
Reply With Quote #4

The model looks different from that. It's a different girl ;)

Anywho, here's what your strip function should look like:
Code:
public strip(id, level, cid){     if (!cmd_access(id, level, cid, 2))         return PLUGIN_HANDLED;     new arg[32];     read_argv(1, arg, 31);     new target = cmd_target(id, arg, 3);     if(!target) return PLUGIN_HANDLED;     new name[33];     get_user_name(target, name, 32);     strip_user_weapons(target);     set_hudmessage(255, 1, 1, -1.0, -1.0, 0, 6.0, 12.0, 0.1, 0.2, 4);     show_hudmessage(id, "%s had his weapons stolen!", name);     cs_set_user_model(target, "girl");        return PLUGIN_HANDLED; }
__________________
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
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-05-2005 , 01:17  
Reply With Quote #5

Ty... updated. Now I was wondering - since we talked about this a briefly...

if I have this:

Code:
public weapon_pickup(id){     strip(id);       }     return PLUGIN_HANDLED }

How do I make it so that it strips the target and not just anyone who picks up the weapon, because I can't create a new target before plugin_init() o.O
Jordan is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-09-2005 , 22:50  
Reply With Quote #6

Updated.
Jordan is offline
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 12-11-2005 , 01:40  
Reply With Quote #7

Its better u use the userid... then gives not problems with special characters and spaces

Change this:
Code:
    new name[33];     get_user_name(target, name, 32);     strip_user_weapons(target);

to this
Code:
    new name[33];     get_user_name(target, name, 32);     get_user_userid(id);     strip_user_weapons(id);
__________________
Mulan is offline
Send a message via ICQ to Mulan
VEN
Veteran Member
Join Date: Jan 2005
Old 12-11-2005 , 04:00  
Reply With Quote #8

Quote:
Originally Posted by Mulan
Code:
get_user_userid(id)
This is useless since you haven't use result of this function anywhere.
VEN is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 12-11-2005 , 12:42  
Reply With Quote #9

I did not use what Mulan wrote, sorry, but I did fix the weapon_pickup function... w00t ^^ Update
Jordan is offline
Caesar
BANNED
Join Date: Nov 2004
Old 12-11-2005 , 22:48   Re: Amx_Strip *Update v.06*
Reply With Quote #10

Quote:

Strips the players weapons (as well as model o.O- no the model is NOT pornographic)
OMFG!! Cmon!
Caesar is offline
Reply


Thread Tools
Display Modes

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 23:12.


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