Quote:
Originally Posted by TheHoodRat
Smooth Timer Loading
This script will stop lag (you must use this every time you load a timer for smooth results).
pawn Код:
#include < a_samp >
new Timer ;
public OnFilterScriptInit ( ) { return true ; }
public OnFilterScriptExit ( ) { KillTimer( Timer ) ; return true ; }
public OnPlayerConnect(playerid) { Timer = SetTimer( "TimerLoad" , 3000 , false ) ; return true ; }
forward TimerLoad ( ); public TimerLoad ( ) { Timer = SetTimer( "TimerKill" , 20 , false ) ; return true ; }
forward TimerKill ( ); public TimerKill ( ) { KillTimer( Timer ) ; return true ; }
|
Um..ok.. I don't really understand what it does, but this is shit. For example 10 players connect in 3 seconds. So..?