Posts: 109
Threads: 28
Joined: Feb 2017
Reputation:
0
if i put in onplayerupdate that code it will stay at 0 because i will not move it's still updating, it will not update only if i minimize the game
Posts: 109
Threads: 28
Joined: Feb 2017
Reputation:
0
It's not working, it's resseting everytime, and i don't move
Posts: 249
Threads: 56
Joined: Jun 2013
Reputation:
0
Oh yeah my bad i didn't realise that. My code isn't working properly. Then you have to make it with like
Pos1[3]
Pos2[3]
Then in one timer GetPlayerPosition to pos1 then in another timer do GetPlayerPosition to pos2 then compare the results in second timer and reset the afktime. Checking it through if he moved 2 meters still doesnt seem the best way to do it. I dont think you can take a break for a time to stop loops and do the second one after.
NOTE: You could put two different loops in a timer. I dont know if it would be efficient.
Posts: 109
Threads: 28
Joined: Feb 2017
Reputation:
0
i fixed. you know what is the max interior id?
Posts: 6,242
Threads: 8
Joined: Jun 2008
Max interior is 255. SA-MP limits is a good search term.