Raised This Month: $ Target: $400
 0% 

Force Drop Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-18-2013 , 10:37   Re: Force Drop Weapon
Reply With Quote #1

@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 #2

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 #3

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
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 10:52.


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