force to use knife
How to force all players or some group of them to use only knife and prevent them from changing weapon? Can somebody give me an example of code please :)
|
Re: force to use knife
If you intend to use this as a WarmUp round, the most efficient way is to remove all theyre money, strip the weapons, and give_item knife.
Other method for a WarmUp round is a plugin created by Alka Here is the code: PHP Code:
|
Re: force to use knife
No its not for warmup round. But its all i needed
Code:
engclient_cmd(id, "weapon_knife"); |
Re: force to use knife
Be carefull with engclient_cmd working with weapons, because if a user has a ak47 for example, and you force him with engclient to swicth to knife, the engine death messages will be ok, but the AMXX stats system will count as a ak47 death instead of knife.
|
Re: force to use knife
So do you have any alternatives?
|
Re: force to use knife
you could use strip_user_weapons(id) & give_item(id, "weapon_knife")
|
Re: force to use knife
Quote:
|
Re: force to use knife
Quote:
|
| All times are GMT -4. The time now is 06:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.