SA-MP Forums Archive
Nightvision and Thermal Vision - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Nightvision and Thermal Vision (/showthread.php?tid=612429)



Nightvision and Thermal Vision - Zeus666 - 17.07.2016

I know that everyone knows that there is bug at NightVision and Thermal Vision

BUT
But
But
But
But
But
But

I've made an loot system, where you can find Night Vision and Thermal Vision Goggles, equipping them. They comes with 99 ammo, but the error is that when you equip it, it shows to everyone on sight. (Not to all server, just to everyone on sight)

How can I modify that?


Re: Nightvision and Thermal Vision - AbyssMorgan - 17.07.2016

https://sampforum.blast.hk/showthread.php?tid=513499

YSF_EnableNightVisionFix(true);


Re: Nightvision and Thermal Vision - Zeus666 - 17.07.2016

YSF_EnableNightVisionFix(true);

where that?


Re: Nightvision and Thermal Vision - CodeStyle175 - 17.07.2016

ctrl+f and ysf_enable...


Re: Nightvision and Thermal Vision - WhiteGhost - 17.07.2016

Sigh..
#Grim_
PHP код:
public OnPlayerUpdate(playerid)
{
    switch(
GetPlayerWeapon(playerid))
    {
      case 
4445:
      {
        new 
keysudlr;
        
GetPlayerKeys(playeridkeysudlr);
        if((
keys KEY_FIRE) && (!IsPlayerInAnyVehicle(playerid)))
            {
              return 
0;
            }
        }
    }
    return 
1;




Re: Nightvision and Thermal Vision - Zeus666 - 17.07.2016

I already have this, WhiteGhost