Flashlight to Nightvision
Hello allied modders. If player in terrorist team then i want to bind F to nightvision. If he press F button then nightvision will toggle. And if in ct team then button F is impulse 100(flashlight).
Thank you. |
Re: Flashlight to Nightvision
try:
PHP Code:
|
Re: Flashlight to Nightvision
This only set item to true or false, you need to execute engclient_cmd(id, "nightvision").
|
Re: Flashlight to Nightvision
yeah,my bad,thanks.
|
Re: Flashlight to Nightvision
PHP Code:
If cvar is 0, it does nightvision instead of flashlight for Terrorists |
Re: Flashlight to Nightvision
Jhob94 version works like charm. Thank you.
@MOD: Solved. |
| All times are GMT -4. The time now is 16:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.