GetPlayerTime()
#1

So, I've changed my in-game time through some memory hacking tool (we all know what it is) to midnight, but GetPlayerTime() still returns 12:00! How can I get the actual player's time? Needed for anti-cheat, that prevents time changing
Reply
#2

Quote:
Originally Posted by Baltazar
Посмотреть сообщение
So, I've changed my in-game time through some memory hacking tool (we all know what it is) to midnight, .....
Get the player's current game time. Set by SetWorldTime, SetWorldTime, or by TogglePlayerClock.

https://sampwiki.blast.hk/wiki/GetPlayerTime

You can't really do about that and can you explain more about what type of memory hacking you're doing? and why are you doing it?
Reply
#3

Quote:
Originally Posted by iZN
Посмотреть сообщение
Get the player's current game time. Set by SetWorldTime, SetWorldTime, or by TogglePlayerClock.

https://sampwiki.blast.hk/wiki/GetPlayerTime

You can't really do about that and can you explain more about what type of memory hacking you're doing? and why are you doing it?
This function does not return the actual player's time as I've just tested and reported it here.
That tool is call s*b*i*. I'm simply trying to create a prevention of time-changing by memory hacking tools
Reply
#4

What SA-MP gives you is what you get.

GetPlayerTime is the only documented function that's supposed to get the client's reported time.

What you can do is repeatedly SetPlayerTime() and that's all you can do.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)