Map Icon
#1

Hi
I want to SetPlayerMapIcon for capture zone
when a player come's near capture zone only then he can see that icon.

Is that done like this

Код:
stock IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
    new Float:X, Float:Y, Float:Z;

    GetPlayerPos(playerid, X, Y, Z);
    if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) {
        return 1;
    }
    return 0;
}
public OnPlayerConnect
   if(IsPlayerInArea(playerid,  Float:MinX, Float:MinY, Float:MaxX, Float:MaxY))
  {
   SetPlayerMapIcon(blah! blah!)
  }
  return 1;
}
or their is another way?
Reply


Messages In This Thread
Map Icon - by Iron3man - 09.08.2013, 03:04
Re: Map Icon - by [D]ry[D]esert - 09.08.2013, 03:10
Re: Map Icon - by Iron3man - 09.08.2013, 03:21

Forum Jump:


Users browsing this thread: 1 Guest(s)