GetPlayerTime() - 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: GetPlayerTime() (
/showthread.php?tid=508376)
GetPlayerTime() -
Baltazar - 21.04.2014
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
Re: GetPlayerTime() -
iZN - 21.04.2014
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?
Re: GetPlayerTime() -
Baltazar - 21.04.2014
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
Re: GetPlayerTime() -
SkittlesAreFalling - 21.04.2014
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.