If player in pos
#2

you have to set a timer in nGameMdeInit
then use the PlayerToPoint function
then do your action
example
pawn Код:
public OnGameModeInit()
{
  SetTimer("MyAction", 100, true);
  return 1;
}

forward MyAction();
public MyAction()
{
  for(new i=0; i<MAX_PLAYERS; i++)
  {
    if(PlayerToPoint(Float:Radi, playerid, PosX, PosX, PosZ))
    {
      //The Action
    }
  }
}
for more info visit https://sampwiki.blast.hk/
Reply


Messages In This Thread
If player in pos - by Sal_Kings - 29.06.2009, 20:42
Re: If player in pos - by James_Alex - 29.06.2009, 20:47
Re: If player in pos - by dice7 - 29.06.2009, 20:48

Forum Jump:


Users browsing this thread: 1 Guest(s)