Raised This Month: $ Target: $400
 0% 

force drop weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 05-22-2008 , 11:25   force drop weapon
Reply With Quote #1

whats the script to make some drop a weapon. and if you can be kind to make it the weapon from buy menu 5 gun 1 (that big machine gun)
whosyourdaddy is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-22-2008 , 12:05   Re: force drop weapon
Reply With Quote #2

PHP Code:
client_cmd(id"slot1; drop"// switches player's weapon to primary and then uses "drop" command 
__________________
hleV is offline
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 05-22-2008 , 12:08   Re: force drop weapon
Reply With Quote #3

thank you
whosyourdaddy is offline
AAleaderNik
Member
Join Date: Dec 2005
Old 05-22-2008 , 17:46   Re: force drop weapon
Reply With Quote #4

sounds to me like u just want to restrict that weapon :-/ u dont need to make a plugin for that .....in plugins.ini unmark restmenu.amxx so its enabled then go in game and type amxmodmenu and go to the restrict weapons and choose the machine gun
AAleaderNik is offline
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 05-22-2008 , 17:52   Re: force drop weapon
Reply With Quote #5

no im not trying to restrict it i modified a plugin for recoil check to give this client a weapon using amx_weapon and freezing his screen in place and then shooting and he wont have control over his guy for a couple of seconds after his done i wanted it to drop the weapon and i didnt no the command thats all
whosyourdaddy is offline
AAleaderNik
Member
Join Date: Dec 2005
Old 05-22-2008 , 18:29   Re: force drop weapon
Reply With Quote #6

o well thanks for explaining it just sounded like you didnt want to use the machine gun
AAleaderNik is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-23-2008 , 12:04   Re: force drop weapon
Reply With Quote #7

The above way are quite ugly. I'd recommend the below one:
Quote:
engclient_cmd(id, "drop", "weapon_m249")
VEN is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-23-2008 , 12:36   Re: force drop weapon
Reply With Quote #8

Quote:
Originally Posted by VEN View Post
The above way are quite ugly. I'd recommend the below one:
OMG. Didn't knew that there's a command like that. Thanks VEN, that'll be very useful to me.
__________________
hleV is offline
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 05-24-2008 , 14:41   Re: force drop weapon
Reply With Quote #9

whats the differnce between the two, dont they both drop weapon?
whosyourdaddy is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-24-2008 , 16:03   Re: force drop weapon
Reply With Quote #10

Quote:
Originally Posted by whosyourdaddy View Post
whats the differnce between the two, dont they both drop weapon?
client_cmd(id, "slot1; drop") - chooses and drops your primary weapon.
engclient_cmd(id, "drop", "weapon_m249") - drops M249 if you have one.
__________________
hleV 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 08:46.


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