22.11.2009, 16:35
When a enters idlewood a message will pop up and say idlewood, Look the link below it's a tutorial.
https://sampwiki.blast.hk/wiki/Areacheck
pawn Code:
public isPlayerInArea()
{
new Float:X, Float:Y, Float:Z;
for(new i=0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if (X <= MinX && X >= MaxX && Y <= MinY && Y >= MaxY)
{
SendClientMessage(playerid, COLOR_WHITE, "IdleWood");
}
}
}