View Single Post
  #2  
Old 05-03-2012, 09:01 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Checking if a player is between the top left and bottom right corner should work.

PHP Code:
if (player.x in | 28.5, 48.5 | && player.y in | 32.5, 52 |) {
  
//warp player
} 
Reply With Quote