AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Best way to drop/strip weapon from slot (https://forums.alliedmods.net/showthread.php?t=174288)

bibu 12-18-2011 11:06

Best way to drop/strip weapon from slot
 
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?

drekes 12-18-2011 11:24

Re: Best way to drop/strip weapon from slot
 
Maybe this can help you:
http://forums.alliedmods.net/showthread.php?t=170478

bibu 12-18-2011 12:41

Re: Best way to drop/strip weapon from slot
 
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.

drekes 12-18-2011 12:52

Re: Best way to drop/strip weapon from slot
 
Just replace ham_strip_weapon() with engclient_cmd(id, "drop");


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

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