Thread
:
Weapon Throwing
View Single Post
Snafu.at
Junior Member
Join Date: Feb 2011
02-24-2011 , 15:04 Re: Weapon Throwing
#
50
Hey guys!
I've managed to fix the MP5 bug. The call to get_weaponid returned 0 because the weapon is not called weapon_mp5 but weapon_mp5navy.
The author of this plugin stripped away the prefix and suffix of the weapons model name, which in case of the mp5 is w_mp5.mdl. This caused the bug.
Cheers,
Snafu
PS: I've never coded AMXX plugins before. If there is a cleaner way to do the replace you're welcome to do it that way. The foo = "bar" was my first attempt, compiled without erros and it works on my local server.
Attached Files
Get Plugin
or
Get Source
(throw_weapons.sma - 363 views - 12.4 KB)
Last edited by Arkshine; 02-25-2011 at
04:47
. Reason: AMXX file removed, you are not allowed to upload compiled plugin.
Snafu.at
View Public Profile
Send a private message to Snafu.at
Find More Posts by Snafu.at