Quote:
Originally Posted by Leon M.
@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");
}