SA-MP Forums Archive
Something like on player move - 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: Something like on player move (/showthread.php?tid=572283)



Something like on player move - AroseKhanNiazi - 26.04.2015

I got location text draw that i need to update as player just moves.
OnPlayerUpdate even includes changing weapons shooting ect ect so that's kinda waste of memory.
OnPlayerKeyState change can be bad in vehicles as if player does not changes the key he is pressing.
Each second timer for each player is kinda bad or global timer working each second this is what i am using right now but thinking of something better and efficient if there is...


Re: Something like on player move - Evocator - 26.04.2015

OnPlayerEnterDynamicArea, OnPlayerLeaveDynamicArea, CreateDynamicRectangle


Re: Something like on player move - AroseKhanNiazi - 26.04.2015

But my areas overlap each other.....


Re: Something like on player move - Evocator - 26.04.2015

Then use CreateDynamicCube


Re: Something like on player move - AroseKhanNiazi - 26.04.2015

Okay so i will do this way, but is this even efficient than that per second ?


Re: Something like on player move - Evocator - 26.04.2015

Indeed, this will only change when he moves out of/in the area, and not per second.