[SOLVED] Default Flashlight: Only owner can see the light.
Hi did anyone know how to make only owner can see their flashlight. I don't want to use Custom Flashlight plugin. Original flashlight more efficient but i need only owner can see the light.
[IMG]http://img543.**************/img543/2624/dedust20001kr.png[/IMG] |
Re: [HELP] Default Flashlight: Only owner can see the light.
look at SgtBane`s predator mod its included inside.
|
Re: [HELP] Default Flashlight: Only owner can see the light.
Hook AddToFullPack and remove flashlight from ES_Effects when ent is not host.
You can cache On/off status in a bit at FlashLight event. |
Re: [HELP] Default Flashlight: Only owner can see the light.
Quote:
Quote:
|
Re: [HELP] Default Flashlight: Only owner can see the light.
You can code or you want the full code ?
If you want the whole code your are not in the right forum. |
Re: [HELP] Default Flashlight: Only owner can see the light.
PHP Code:
|
Re: [HELP] Default Flashlight: Only owner can see the light.
Quote:
|
Re: [HELP] Default Flashlight: Only owner can see the light.
The code metalicross added works right just put it in your FM_AddToFullPack forward.
|
Re: [HELP] Default Flashlight: Only owner can see the light.
Sorry revived my old thread. OK i have done with this code:
PHP Code:
|
Re: [HELP] Default Flashlight: Only owner can see the light.
Main thing you forgot is to check if a player is passed, adding this filter would prevent many checks on every other entities than player.
Then, get_orig_retval check, if it is 0 it means the player is not viewable from host or is dead, so don't bother. Last, check ES_Effects first so you make sure you need to set it or not. PHP Code:
|
| All times are GMT -4. The time now is 02:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.