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.