Nightvision NEED SMALL HELP!
Hello all, how do i check if player has nightvision and also if it enabled?
I need this really really fast. Thank you :bacon!: |
Re: Nightvision NEED SMALL HELP!
Quote:
|
Re: Nightvision NEED SMALL HELP!
Yes cs_set_user_nvg( id, 1 ) works but it has a problem.
Example on zombie server: Human has a nightvision. And it was enabled. Then human becomes zombie. Problem: I give nightvision on zombie infect (and its enabled by auto like client_cmd nightvision). So if human has nightvision it will turned off because off i've enabling nightvision in client_cmd. So how can i solve this? I think i need to check human has nightvision then if has remove and regive? Also how can i give nightvision to spec's? Here is the code ive got so far... (some code token from drop nvg) PHP Code:
|
Re: Nightvision NEED SMALL HELP!
Try this :
Instead of remove_user_nvg, use set_user_nvg(id, 0) To force nvg ON, use set_user_nvg(id, 1, 1) PHP Code:
|
Re: Nightvision NEED SMALL HELP!
That gives me this error.
PHP Code:
Or did i put somewhere wrong? Here is the code. PHP Code:
|
Re: Nightvision NEED SMALL HELP!
You've put define and const with same name
|
Re: Nightvision NEED SMALL HELP!
Thank you Connor. Problem solved.
@MOD: Close. |
| All times are GMT -4. The time now is 10:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.