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

Drop weapons by choice


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   Hawk552 (427)
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 02-20-2010 , 10:09   Drop weapons by choice
Reply With Quote #1

Description:
I saw a plugin that at the use of amx_drop, strips all client's weapons...So I got this ideea
The admin can drop a player's primary or secondary weapon by choice.
The access needed is ADMIN_KICK
Commands:
amx_drop "name" "1/2/3" where:
1 - drops primary weapon
2 - drops secondary weapon
3 - drops all weapons
Special Thx to
uNny
xPaw
Changelog:
Code:
1 - First release
1.1 - Fixed some code (thx xPaw)
1.2 - Added drop 3
Waiting for your suggestions!
Attached Files
File Type: sma Get Plugin or Get Source (amx_drop.sma - 6085 views - 2.2 KB)

Last edited by Brreaker; 02-20-2010 at 18:26.
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
lazarev
Veteran Member
Join Date: Sep 2008
Old 02-20-2010 , 10:12   Re: Drop weapons by choice
Reply With Quote #2

Code:
Introduceti 1 pentru primary weapon si 2 pentru secondary weapon
sry wut?
Code:
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
XD
lazarev is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 02-20-2010 , 10:13   Re: Drop weapons by choice
Reply With Quote #3

can u translate messages 4 us?
__________________
"There is no knowledge, that is not power"
fezh is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 02-20-2010 , 10:19   Re: Drop weapons by choice
Reply With Quote #4

Done...sorry 'bout that xD

Last edited by Brreaker; 02-20-2010 at 10:30.
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 02-20-2010 , 10:31   Re: Drop weapons by choice
Reply With Quote #5

@ lazarev: whats goin on with amx studio notes?
__________________
"There is no knowledge, that is not power"
fezh is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 02-20-2010 , 11:19   Re: Drop weapons by choice
Reply With Quote #6

__________________
Zombiezzz is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-20-2010 , 13:32   Re: Drop weapons by choice
Reply With Quote #7

Code:
    if(!arg2[0]) {         console_print(id, "*Please input the weapon code!1 for primary weapons and 2 for secondary weapons")     }
Wont happen, you can remove this (you already specified 3 params in cmd_access)

Use switch for strnum
Code:
switch( strnum ) {     case 1: {         // [ ... ]     }     case 2: {         // [ ... ]     }     default: {         // Wrong param passed blabla     } }

And read param 2 after checking if player is found (just to save memory)
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-20-2010 , 13:34   Re: Drop weapons by choice
Reply With Quote #8

awesome and so usefull !!
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
FuZ!on
Senior Member
Join Date: Aug 2007
Old 02-20-2010 , 14:27   Re: Drop weapons by choice
Reply With Quote #9

Wow. Very useful. Even though it is done already, it might be a good idea to add a feature that drops all of their weapons so all they need is this plugin and not the other amx_drop plugin.
FuZ!on is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 02-20-2010 , 15:30   Re: Drop weapons by choice
Reply With Quote #10

Already did!Check changelog xD!thank you xPaw and others for feedback

Last edited by Brreaker; 02-20-2010 at 15:47.
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
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 09:13.


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