Skip to content

Technical Documentation

1NS edited this page Jul 14, 2026 · 2 revisions

[<<<Wiki]

Gamemode: CW/TG Sandbox gamemode by Russian Sawn-off Community 2023

Features

  • Fixed known issues causing problems on the SA:MP server
  • SAMPCAC and Nex-AC Anticheat integration
  • Pull out maximum possibilities from the server mainly with memory editing and hooking by YSF plugin
  • Improved built-in server-side anticheat detecting many popular damage and weapon hacks
  • Works correctly in all lag compensation modes (lagshot-skinshot)
  • Simple and fast player data storage system Sqlite
  • Improved Skinshot Synchronization (need SKY plugin and weapon-config.inc).
  • CW/TG system integrate to access basic game functions with simple menu
  • Administrators system (Logs, Ban, Monitoring, Specbar, DBmanagment etc)
  • Raid's protection system, detect (VPN, Mobile, Bots, Recon, Spam)
  • A unique system of virtual worlds with a wide range of features
  • NPCs system for training players FCNPC

Build recomendations

Use the Zeex's improved compiler to build this gamemode!
Editor options: TABSIZE 4, encoding windows-1251, Lang EN-RU.
Example server.cfg configfile:

gamemode0 cwPublic
filterscripts sampcac_base sampcac_gameresource
plugins crashdetect sscanf sampcac_server YSF streamer FCNPC
maxnpc 50

To enable improved sync #define IMPROVED_SYNC and recompile gamemode

Need plugin dependent SKY and weapon-config.inc

It is not recommended to use fixes.inc due to compatibility issues.
All the necessary features from this include have already been included

Requirements

Anticheat

Sampcac anti-cheat is outdated and no longer supported.
But its functionality is quite enough for our needs.
Add only sampcac_base filterscript at config!!
Documentation: https://github.com/ins1x/sampcac-docs

Players with SAMPCAC must connect from the SA-MP 0.3.7 R1 Client

We use a modified version of this nexac include for our needs.
look (#if defined RSC) in nex-ac.inc
(Such as anti-cheat statistics, reset parameters, etc.)
https://github.com/NexiusTailer/Nex-AC

Gamemode Logic

Connect sequence

  • Check Valid Name (bad symbols, avertising)
  • Start sampcac memory check (if CAC on)
  • Get player GeoIP data (ip-api.com service)
  • Fake client check (Rakbot, RakDroid, old S0beits)
  • Hardware ban check (hwis, gpci) - > DB core request
  • Mute bypass checker (by ip) - > DB accounts request
  • Check is server locked
  • Preset enviroments
  • CAC check
  • VPN/Proxy check
  • Load textdraws
  • RemoveServerBuildings
  • Login dialog

Login sequence

  • Check players gcpi and ip for this nickname if they match -> Autologin else -> Login Dialog
  • After login show class select dialog Check speconly mode if not active players on speconly start flymode Check locked teams

Known Bugs

The mod needs to be reloaded once a day, otherwise on the third day false anti-cheat tests begin. On the 7th day, the timers are loaded. On the 10th day, the flight mode of the camera is switched off.

Monitorings

Check the availability of the host from other countries: https://check-host.net/check-http?host=82.208.17.10

SA:MP Monitoring

[<<<Wiki]

Clone this wiki locally