Capturin zones
#3

Quote:
Originally Posted by marrcko
Посмотреть сообщение
Well.. use timer for 1sec. which get actived then player enter to checkpoint...After that check if player is in right place with PlayerToPoint (if u have this stock) and count seconds like:
pawn Код:
public StandInPlace(playerid)
  {
  if(TimeInPlace[playerid] < 20) // 20 - 20sec
     {
     if(PlayerToPoint(3,playerid,X,Y,Z)
       {
       TimeInPlace[playerid]++
       }
     else KillTimer(timerid);
     }
  else
       {
       TimeInPlace[playerid]=0;
       //do smth after player stand in place 20sec...
       }
  return 1;
  }
ofcourse dont foget as global
pawn Код:
TimeInPlace[MAX_PLAYERS]=0
Thanks dude,How can i use this if someone is in checkpoint?
Reply


Messages In This Thread
Capturin zones - by Admigo - 18.08.2011, 10:42
Re: Capturin zones - by marrcko - 18.08.2011, 11:22
Re: Capturin zones - by Admigo - 18.08.2011, 11:52
Re: Capturin zones - by Pinguinn - 18.08.2011, 12:01
Re: Capturin zones - by Admigo - 18.08.2011, 12:06
Re: Capturin zones - by Riddick94 - 18.08.2011, 12:12
Re: Capturin zones - by marrcko - 18.08.2011, 12:14
Re: Capturin zones - by Riddick94 - 18.08.2011, 12:19
Re: Capturin zones - by marrcko - 18.08.2011, 12:31
Re: Capturin zones - by Riddick94 - 18.08.2011, 12:36
Re: Capturin zones - by marrcko - 18.08.2011, 12:39
Re: Capturin zones - by Admigo - 18.08.2011, 12:59
Re: Capturin zones - by Riddick94 - 18.08.2011, 13:02
Re: Capturin zones - by Admigo - 18.08.2011, 13:07
Re: Capturin zones - by Riddick94 - 18.08.2011, 13:13
Re: Capturin zones - by Admigo - 18.08.2011, 13:22
Re: Capturin zones - by Riddick94 - 18.08.2011, 13:25
Re: Capturin zones - by Admigo - 18.08.2011, 13:27
Re: Capturin zones - by Riddick94 - 18.08.2011, 13:30
Re: Capturin zones - by Admigo - 18.08.2011, 13:46
Re: Capturin zones - by Riddick94 - 18.08.2011, 13:59
Re: Capturin zones - by Admigo - 18.08.2011, 14:00

Forum Jump:


Users browsing this thread: 3 Guest(s)