Raised This Month: $ Target: $400
 0% 

Best way to drop/strip weapon from slot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 12-18-2011 , 11:06   Best way to drop/strip weapon from slot
Reply With Quote #1

I've tried and searched several ways how todo that. Got this so far:

1) http://forums.alliedmods.net/showthr...t=drop+primary

2) http://forums.alliedmods.net/showthr...highlight=drop

3) http://forums.alliedmods.net/showthr...t=drop+primary

2) didn't compile
3) logged sometimes invalid weapon id

Which way would be the best?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-18-2011 , 11:24   Re: Best way to drop/strip weapon from slot
Reply With Quote #2

Maybe this can help you:
http://forums.alliedmods.net/showthread.php?t=170478
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 12-18-2011 at 11:24.
drekes is offline
Send a message via MSN to drekes
bibu
Veteran Member
Join Date: Sep 2010
Old 12-18-2011 , 12:41   Re: Best way to drop/strip weapon from slot
Reply With Quote #3

This works fine, thank you. Could you make the same in the include file with just dropping the weapon please? You don't need to add support for the grenades tough.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-18-2011 , 12:52   Re: Best way to drop/strip weapon from slot
Reply With Quote #4

Just replace ham_strip_weapon() with engclient_cmd(id, "drop");
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 11:52.


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