Thread: function...
View Single Post
  #3  
Old 05-19-2007, 04:32 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
You could set two constant clientside variables that monitor the player's LAST x and y coordinates in a system NPC and then do something like:

PHP Code:
//#CLIENTSIDE
function onKeyPressed()
{
 for (
dir 0dir 4dir++)
  {
   if (
keydown(dir))
    {
     if (
player.!= client.lastplayer_x || player.!= client.lastplayer_y)
      {
       
//The player has moved!
      
}
    }
  }

Reply With Quote