need help for pirateship for == on player update ===
#2

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
}
Reply


Messages In This Thread
need help for pirateship for == on player update === - by Player23 - 18.11.2012, 18:08
Re: need help for pirateship for == on player update === - by Backwardsman97 - 18.11.2012, 21:35
Re: need help for pirateship for == on player update === - by Player23 - 19.11.2012, 03:16

Forum Jump:


Users browsing this thread: 1 Guest(s)