Esempio n. 1
0
        public override void ShowNames()
        {
            ShowDeadName();
            Vector3       position = Game.PlayerPed.ForwardVector;
            RaycastResult result   = Raycast(Game.PlayerPed.Position, position, 75, IntersectOptions.Peds1, null);

            if (result.DitHitEntity)
            {
                if (result.HitEntity != Game.PlayerPed)
                {
                    int ent = result.HitEntity.Handle;
                    if (ActiveTTT.GetPlayerBool(NetworkGetPlayerIndexFromPed(ent), "disguised"))
                    {
                        return;
                    }
                    if (IsPedAPlayer(ent))
                    {
                        HUDText.Caption = GetPlayerName(GetPlayerPed(ent)).ToString();
                        lastLooked      = GetGameTimer();
                    }
                }
            }
        }