Raised This Month: $ Target: $400
 0% 

Force Drop Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Huseyn26
Member
Join Date: Jan 2013
Old 04-18-2013 , 09:44   Force Drop Weapon
Reply With Quote #1

I Need An Plugin Which Will be somehting like this:

dropweapon <playername>

When I Type It The Player will drop 1 weapon,which he uses it now.

Last edited by Huseyn26; 04-18-2013 at 09:44.
Huseyn26 is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-18-2013 , 10:04   Re: Force Drop Weapon
Reply With Quote #2

client_cmd(id, "drop");

Last edited by Podarok; 04-18-2013 at 10:04.
Podarok is offline
Huseyn26
Member
Join Date: Jan 2013
Old 04-18-2013 , 10:14   Re: Force Drop Weapon
Reply With Quote #3

Quote:
Originally Posted by Podarok View Post
client_cmd(id, "drop");
Very Good Example,I Understand EveryThing From Your Words........
Huseyn26 is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-18-2013 , 10:16   Re: Force Drop Weapon
Reply With Quote #4

Quote:
Originally Posted by Huseyn26 View Post
Very Good Example,I Understand EveryThing From Your Words........
Are you stupid? I showed you the way how to do it. Its scripting help, not suggestions/requests.
Podarok is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-18-2013 , 10:37   Re: Force Drop Weapon
Reply With Quote #5

@Podarok
Pretty rude behavior. Also your method is insecure because clients are able to set an alias for drop. In this case nothing will happen meanwhile engclient_cmd(id, "drop") will still work.

@Huseyn26
Please keep in mind this is scripting help. If you don't know how to code then please go here.
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
Huseyn26
Member
Join Date: Jan 2013
Old 04-18-2013 , 10:49   Re: Force Drop Weapon
Reply With Quote #6

Quote:
Originally Posted by Leon M. View Post
@Podarok
Pretty rude behavior. Also your method is insecure because clients are able to set an alias for drop. In this case nothing will happen meanwhile engclient_cmd(id, "drop") will still work.

@Huseyn26
Please keep in mind this is scripting help. If you don't know how to code then please go here.
No.I Know Scripting.Just I Need Little Help

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Weapon Dropper"
#define VERSION "1.0"
#define AUTHOR "Huseyn"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_concmd("dropweapon","dropweapon", ADMIN_IMMUNITY, "<target name>")
}

public dropweapon(id) {
	new target[32],tid
	read_argv(1,target,23)
	tid = cmd_target(id,target,1)
	engclient_cmd(tid,"drop");
	
}

Last edited by Huseyn26; 04-18-2013 at 11:16.
Huseyn26 is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-19-2013 , 00:13   Re: Force Drop Weapon
Reply With Quote #7

Quote:
Originally Posted by Leon M. View Post
@Podarok
Pretty rude behavior. Also your method is insecure because clients are able to set an alias for drop. In this case nothing will happen meanwhile engclient_cmd(id, "drop") will still work.
Read this , LEON wrote it.
Podarok is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-18-2013 , 10:40   Re: Force Drop Weapon
Reply With Quote #8

Look at that Leon.. It is offending me.
Quote:
Very Good Example,I Understand EveryThing From Your Words........
Also Forgot TO Tell You, Your Writing Style Is Very Cool.
Podarok is offline
Huseyn26
Member
Join Date: Jan 2013
Old 04-18-2013 , 10:46   Re: Force Drop Weapon
Reply With Quote #9

Quote:
Originally Posted by Podarok View Post
Look at that Leon.. It is offending me.

Also Forgot TO Tell You, Your Writing Style Is Very Cool.
Yes Capitalize Words.

But I Didnt Get Help Again.Please Just Post Full Plugin Script.
Huseyn26 is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-18-2013 , 10:48   Re: Force Drop Weapon
Reply With Quote #10

Quote:
Originally Posted by Huseyn26 View Post
Yes Capitalize Words.

But I Didnt Get Help Again.Please Just Post Full Plugin Script.
No
Quote:
Originally Posted by Podarok
Its scripting help, not suggestions/requests
Podarok 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 10:52.


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