NightVision & Thermal Goggles
#8

Quote:
Originally Posted by Sky4D
Quote:
Originally Posted by Grim_
This works, tested it myself:
pawn Code:
#include <a_samp>

public OnPlayerUpdate(playerid)
{
    switch(GetPlayerWeapon(playerid))
    {
      case 44, 45:
      {
        new keys, ud, lr;
        GetPlayerKeys(playerid, keys, ud, lr);
        if((keys & KEY_FIRE) && (!IsPlayerInAnyVehicle(playerid)))
            {
              return 0;
            }
        }
    }
    return 1;
}
Interesting, thank you.
And then only I see my goggle ?
Reply


Messages In This Thread
NightVision & Thermal Goggles - by Headshot1108 - 31.05.2010, 15:11
Re: NightVision & Thermal Goggles - by IcyBlight - 31.05.2010, 15:13
Re: NightVision & Thermal Goggles - by Headshot1108 - 31.05.2010, 15:17
Re: NightVision & Thermal Goggles - by Grim_ - 31.05.2010, 15:29
Re: NightVision & Thermal Goggles - by (.Aztec); - 31.05.2010, 16:31
Re: NightVision & Thermal Goggles - by Grim_ - 31.05.2010, 17:00
Re: NightVision & Thermal Goggles - by (.Aztec); - 31.05.2010, 17:22
Re: NightVision & Thermal Goggles - by Headshot1108 - 01.06.2010, 11:07
Re: NightVision & Thermal Goggles - by DeathOnaStick - 01.06.2010, 16:11
Re: NightVision & Thermal Goggles - by MadeMan - 01.06.2010, 16:43

Forum Jump:


Users browsing this thread: 4 Guest(s)