Stop Time Exploits With Internet-synced Clock | Unity Beginner Tutorial

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • Time based reward systems are extremely common in gaming and can be exploited easily if rewards are based on device time.
    This tutorial will teach you how to get current time from internet and prevent device time exploits
    00:00 Introduction
    00:48 Script Setup
    02:09 Fetching and Parsing Server Time

Комментарии • 6

  • @JotalenG
    @JotalenG 16 дней назад +1

    Thank you so much, I actually struggled to get internet time into my game in Unity to prevent cheating. You have my like, good luck with the chanel!!

  • @catalincucorada7922
    @catalincucorada7922 2 месяца назад +1

    Bro ive been working on a game for half a year now, if its gonna be a succes i swear ill promote your channel as well as i can

  • @PleerFol
    @PleerFol 7 месяцев назад

    Офигеть, чел почему у тебя нету комментов? Уже несколько видео твоих попалось, очень интересно, продолжай

  • @ahh170
    @ahh170 6 месяцев назад +1

    now im wondering how to connect this to my daily rewards

    • @light-light
      @light-light 3 месяца назад

      public bool Check24HourPass(DateTime from)
      {
      if(!IsLoaded)
      return false;
      DateTime now = GetServerDateTimeUTC();
      if (now > from.AddHours(24))
      return true;
      else
      return false;
      }
      Save from time after claim first day reward. Then user turn game on at next day, check with above function. This is not tested, just thought. For block disconnection internet cheating, IsLoaded is false, then return false and block give reward.

    • @Your.Serpent
      @Your.Serpent 3 месяца назад

      Umm! Maybe you store all collected rewards to the cloud. And then simply give the reward based on server time?!