Spawning weapons with no ammo
Hello, I am i need of a little help. I am trying to spawn a Deagle at the feet of a player but that Deagle can not have any ammo, and if possible be named "Toy gun"
|
Re: Spawning weapons with no ammo
With 'at the feet of a player' you mean in the drop position ? And what naming are you talking about ?
Code:
|
Re: Spawning weapons with no ammo
@killerZM - What if he isn't holding the deagle?
@edon1337 - Use engclient_cmd. |
Re: Spawning weapons with no ammo
Even if he is not holding deagle, weapon will be dropped if the player has it.
|
Re: Spawning weapons with no ammo
Quote:
|
Re: Spawning weapons with no ammo
If command is simply "drop", it will drop the active item. If command is "drop weapon_name" it will drop that specific weapon no matter what.
|
Re: Spawning weapons with no ammo
use create entity for it ? create_entity(weapon_box) better
|
Re: Spawning weapons with no ammo
Just a question, why giving the deagle and drop it after? Also, is_user_alive() check should be used.
|
Re: Spawning weapons with no ammo
Quote:
Quote:
Quote:
|
Re: Spawning weapons with no ammo
Got it.
|
| All times are GMT -4. The time now is 17:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.