Pause Function?
#8

Quote:
Originally Posted by Matthias_
Посмотреть сообщение
Or use this:

Код:
new iLastUpdate[ MAX_PLAYERS ];

public OnPlayerUpdate( playerid )
{
   iLastUpdate[ playerid ] = GetTickCount();
   return 1;
}

stock IsPlayerPausing( iPlayerID )
{
   if(GetTickCount() > ( iLastUpdate[ iPlayerID ] + 2000 ))
   {
      return 1;
   }
   return 0;
}
Exactly, although i wouldn't do i EVERY updated. I would personally do it like ever 30 updates.
Reply


Messages In This Thread
Pause Function? - by Kevin_Joshen - 18.08.2010, 15:26
Re: Pause Function? - by Lorrden - 18.08.2010, 15:38
Re: Pause Function? - by Kevin_Joshen - 18.08.2010, 15:46
Re: Pause Function? - by playbox12 - 18.08.2010, 15:48
Re: Pause Function? - by Kevin_Joshen - 19.08.2010, 20:45
Re: Pause Function? - by Kyosaur - 19.08.2010, 20:49
Re: Pause Function? - by Matthias_ - 19.08.2010, 20:56
Re: Pause Function? - by Kyosaur - 19.08.2010, 21:07
Re: Pause Function? - by Jay_ - 21.08.2010, 23:01
Re: Pause Function? - by WillyP - 27.08.2010, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)