15.03.2009, 04:40
This is not tested, but it might work...
//top of script
//somewhere below 'main()'
//under OnGameModeInit
//top of script
pawn Код:
forward AreaCheck();
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
}
}
return 1;
}
pawn Код:
SetTimer("AreaCheck", 1000, 1);