GivePlayerWeapon bug
#1

If you have a weapon, and use GivePlayerWeapon to give a weapon, that has the same slot as your weapon, with 0 bullet to yourself, your weapon will be set to the number of bullets of the new weapon.

For example:
  1. A player has a desert eagle with 100 bullets
  2. The server gives a 9mm to him with 0 bullet by GivePlayerWeapon
  3. The player finds that he has no pistols, since the 100 bullets are ignored, and the 0 bullet from 9mm is counted
  1. A player has a desert eagle with 100 bullets
  2. The server gives a 9mm to him with 10 bullet by GivePlayerWeapon
  3. The player finds that he has only 10 bullet, since the 100 bullets are ignored, and the 10 bullets from 9mm is counted
However, some weapons like shotguns do not act like this. If you give a sawn-off shotgun with 100 bullets to a player who has a combact shotgun with 100 bullets already, he will have 200 bullets.
Reply


Messages In This Thread
GivePlayerWeapon bug - by leong124 - 15.07.2011, 08:12
Re: GivePlayerWeapon bug - by BeckzyBoi - 15.07.2011, 14:39
Re: GivePlayerWeapon bug - by Donya - 17.07.2011, 00:39
Re: GivePlayerWeapon bug - by leong124 - 17.07.2011, 04:05
Re: GivePlayerWeapon bug - by Mike Garber - 17.07.2011, 16:26
Re: GivePlayerWeapon bug - by Donya - 17.07.2011, 17:37
Re: GivePlayerWeapon bug - by leong124 - 18.07.2011, 06:26

Forum Jump:


Users browsing this thread: 2 Guest(s)