15.03.2009, 08:11
Sure..try this
pawn Код:
public AreaCheck()
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
new Float:Pos[3];
GetPlayerPos(i, Pos[0], Pos[1], Pos[2]);
if(PlayerToPoint(1, i, thex, they, thez)) //replace "thex, they, thez" with the coordinates of the place
{
GameTextForPlayer(i, "You are at the special spot", 5000, 5); //or whatever message you want displayed
}
if(PlayerToPoint(1, i, theotherx, theothery, theotherz))
{
GameTextForPlayer(i, "You are at the other special spot", 5000, 5);
}
}
return 1;
}