09.08.2013, 03:04
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
or their is another way?
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; }