18.11.2012, 21:35
Maybe OnPlayerUpdate isn't the best place to that many area checks for all the players. A repeating timer of sorts may be more appropriate but that is entirely up to you. You just need to know if the player is in a certain area? So retrieve their position and compare it to certain coordinates that designate the area of the ship.
pawn Код:
new
Float:x,
Float:y,
Float:z;
GetPlayerPos(playerid,x,y,z);
if((x > MinimumX && x < MaximumX) && (y > MinimumY && y < MaximumY))
{
//They are inside the area
}