SendPlayerMessage
#2

This is not tested, but it might work...

//top of script
pawn Код:
forward AreaCheck();
//somewhere below 'main()'
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;
}
//under OnGameModeInit
pawn Код:
SetTimer("AreaCheck", 1000, 1);
Reply


Messages In This Thread
SendPlayerMessage - by Jason_Larson - 15.03.2009, 04:36
Re: SendPlayerMessage - by Grim_ - 15.03.2009, 04:40
Re: SendPlayerMessage - by Jason_Larson - 15.03.2009, 05:12
Re: SendPlayerMessage - by Grim_ - 15.03.2009, 05:22
Re: SendPlayerMessage - by Jason_Larson - 15.03.2009, 05:57
Re: SendPlayerMessage - by Grim_ - 15.03.2009, 08:11
Re: SendPlayerMessage - by Jason_Larson - 15.03.2009, 12:17

Forum Jump:


Users browsing this thread: 3 Guest(s)