Give a person a weapon with 1 bullet?
Hello, how would i give someone a gun(lets say deagle) with 1bullet?
|
Re: Give a person a weapon with 1 bullet?
Code:
|
Re: Give a person a weapon with 1 bullet?
PHP Code:
|
Re: Give a person a weapon with 1 bullet?
Thank you! The "fun" way works great! :D
|
Re: Give a person a weapon with 1 bullet?
The fakemeta_util way is NOT recommended
|
Re: Give a person a weapon with 1 bullet?
Problem if user already has this weapon is that give_item gonna returns 0 or -1 and cs_set_weapon_ammo gonna throw an error, and player won't have ammo = 1
|
Re: Give a person a weapon with 1 bullet?
Add before cs_set_weapon_ammo this if (!user_has_weapon(index, CSW_DEAGLE))
PHP Code:
|
| All times are GMT -4. The time now is 15:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.