09.11.2012, 18:33
pawn Код:
public OnGameModeInit( )
{
SetTimer( "AutoRepair", 500, true );
// Rest of your code
return 1;
}
forward AutoRepair( );
public AutoRepair( )
{
for( new x = 0; x < MAX_PLAYERS; x++ )
{
if( !IsPlayerInAnyVehicle( x ) ) continue;
RepairVehicle( GetPlayerVehicleID( x ) );
}
return 1;
}