samp.directory
← Scripts and libraries

Whitetigerswt/sampac_server_api

SA-MP Server application interface for Whitetiger's Anti-Cheat

Library★ 4updated Jun 2014No licencePAWN
Open on GitHub

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

README.md

SA-MP server interface for Whitetiger's Anti-Cheat.

  1. Requires

  2. Defines

    • _sampac_TIMERMODE ; change the internal workings of AC_Toggle to check each player individually instead of every player in the same website query. this should be left as the default (0) due to strain on my website this has caused in the past.
    • _sampac_DEBUG ; A debug define used only in my internal testing, again this one should be left alone.
  3. Adds the following functions

    • AC_Running(playerid); ; return true if playerid is running Whitetiger's Anti-Cheat
    • AC_HasTrainer(playerid); ; return true if playerid is detected as using a trainer
    • AC_ASI(playerid); ; return true if playerid is using a NOT ALLOWED .ASI script
    • AC_Toggle(bool:set) ; turn on and off automatic AC checking
    • AC_GetEnabled(); ; return true if automatic AC checking is enabled. (every 30 or so seconds)
    • AC_GetInfo(playerid) ; update AC info for playerid
    • AC_GetAllInfo() ; update AC info for all connected players #if sampac_TIMERMODE == 1
    • AC_EnableForPlayer(playerid) ; enable automatic AC checking for a playerid only
    • AC_DisableForPlayer(playerid) ; disable automatic AC checking for a playerid only #endif

    all other functions are internal and should not be called!

  4. Callbacks

    • OnACToggled(bool:set); ; called when AC_Toggle is called, indicating the new mode of automatic AC checking
    • OnACUpdated(playerid); ; the threaded return callback of AC_GetInfo(). this is the function where you should check the new values for AC_* functions.
    • OnUsingAnotherPC(playerid) ; called when some flags come up and we think the playerid is using 2 PC same IP trick to evade AC
    • OnACFileModified(playerid, file[]) ; called when a data file is modified.

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing