javascript/features/abuse/abuse_monitor.js
// Called when abuse is being reported from Pawn, by the |playerid|.
Called when abuse is being reported from Pawn, by the |playerid|.
Called when abuse is being reported from Pawn by the |playerid| .
reportAbusePawn(playerid, detectorName, certainty) {
        const player = server.playerManager.getById(playerid);
        if (!player)
            return 0;  
        if (!this.settings_().getValue('abuse/pawn_based_detectors')) {
            console.log(`[abuse] Detected ${player.name} for ${detectorName}: ${certainty}.`);
            return 0;
        }
        this.reportAbuse(player, detectorName, certainty);
        return 1;
    }
reportAbusePawn ( playerid , detectorName , certainty ) { const player = server . playerManager . getById ( playerid ) ; if ( ! player ) return 0 ; if ( ! this . settings_ ( ) . getValue ( 'abuse/pawn_based_detectors' ) ) { console . log ( ` ${ player . name } ${ detectorName } ${ certainty } ` ) ; return 0 ; } this . reportAbuse ( player , detectorName , certainty ) ; return 1 ; }
Called when abuse is being reported from Pawn, by the |playerid|.
Called when abuse is being reported from Pawn by the |playerid| .
// invalid |playerid| received // The setting allows Pawn-based abuse detectors to be muted. We still output information to // the console, so that they can be investigated after the fact.