IR and NV Goggles bug?
#1

When i have night view goggles or infrared goggles on my samp server and when i enabled my nightview (or IR) then everyone in the server would have that view :S can i fix this somehow?, i've seen some servers with a fix but i have no idea how.


Thanks,

DaneAMattie
Reply
#2

Never seen a fix, you might use OnPlayerUpdate or something like it, to not sync him with the other players. I'm unsure if new players streaming also have the effect.
Reply
#3

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Never seen a fix, you might use OnPlayerUpdate or something like it, to not sync him with the other players. I'm unsure if new players streaming also have the effect.
New players wont see the effect if i have it on but if i turn it off and on again they will
Reply
#4

Yeah i doubt you can fix it, i saw on one server it worked 50% of the time but when someone laged with them on, the whole server would see with night vision/
Reply
#5

Quote:
Originally Posted by DaneAMattie
Посмотреть сообщение
New players wont see the effect if i have it on but if i turn it off and on again they will
Then you could try to change his position to someplace far away from others for 1-2 seconds and place him back
Reply
#6

Ill try that code and maybe i can make a fix
Reply
#7

Quote:
Originally Posted by ICECOLDKILLAK8
Посмотреть сообщение
Heres a fix, only downside is that players won't see other players wearing goggles, just holding them (Although im guesssing exactly the same thing would happen if they put them on whilst streamed out, so i guess theres no worry there).
Put this in OnPlayerUpdate:
Код:
new weapon = GetPlayerWeapon(playerid);

if(weapon == 44 || weapon == 45)
{
    new keys, ud, lr;
    GetPlayerKeys(playerid, keys, ud, lr);

    if(keys & KEY_FIRE)
    {
        return 0;
    }
}
cool it works, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)