AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Force Drop Weapon (https://forums.alliedmods.net/showthread.php?t=213744)

Huseyn26 04-18-2013 09:44

Force Drop Weapon
 
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.

Podarok 04-18-2013 10:04

Re: Force Drop Weapon
 
client_cmd(id, "drop");

Huseyn26 04-18-2013 10:14

Re: Force Drop Weapon
 
Quote:

Originally Posted by Podarok (Post 1935076)
client_cmd(id, "drop");

Very Good Example,I Understand EveryThing From Your Words........

Podarok 04-18-2013 10:16

Re: Force Drop Weapon
 
Quote:

Originally Posted by Huseyn26 (Post 1935083)
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.

Leon M. 04-18-2013 10:37

Re: Force Drop Weapon
 
@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.

Podarok 04-18-2013 10:40

Re: Force Drop Weapon
 
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. :)

Huseyn26 04-18-2013 10:46

Re: Force Drop Weapon
 
Quote:

Originally Posted by Podarok (Post 1935102)
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.

Podarok 04-18-2013 10:48

Re: Force Drop Weapon
 
Quote:

Originally Posted by Huseyn26 (Post 1935111)
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


Huseyn26 04-18-2013 10:49

Re: Force Drop Weapon
 
Quote:

Originally Posted by Leon M. (Post 1935099)
@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");
       
}


Huseyn26 04-18-2013 10:59

Re: Force Drop Weapon
 
Quote:

Originally Posted by Podarok (Post 1935114)
No

O.K.

Then Correct Mistakes Which I Made in My Code....


All times are GMT -4. The time now is 10:52.

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