← Скрипты и библиотеки
knownasrazi/samp-anticheat-lite
Lite anticheat for SA-MP - humanized checks for speed, health, and weapons.
Фильтрскрипт★ 5обновлён 42 дня назадMITPawn
Открыть на GitHubREADME.md
samp-anticheat-lite
Fair play, lite.
Lite anticheat for SA-MP — hand-crafted checks for speed, health, and weapons.
No false positives. Just checks a person would actually write, with slack for lag.
Checks
| Check | How it works | Slack |
|---|---|---|
| Speed | Distance over time, with lag window | 200ms |
| Health | Server-side only, never trust client | 0 |
| Weapons | Inventory diff, readable | 0 |
| Teleport | Last position vs new, with interior check | 500ms |
Why lite?
Most anticheats ban for lag. This one gives players a little grace, like a human mod would.
// anticheat/speed.pwn — a person left this note: "give players 200ms slack, they lag"
#define SPEED_MAX_DISTANCE 35.0
#define SPEED_SLACK_MS 200
public OnPlayerUpdate(playerid)
{
new Float:oldX, Float:oldY, Float:oldZ;
GetPlayerPos(playerid, oldX, oldY, oldZ);
new Float:dist = GetPlayerDistanceFromPoint(playerid, oldX, oldY, oldZ);
if (dist > SPEED_MAX_DISTANCE) {
// Check slack — maybe they just lagged
if (GetTickCount() - lastMove[playerid] < SPEED_SLACK_MS) {
return 1; // give them a pass
}
FlagPlayer(playerid, "speed", dist);
}
return 1;
}
Install
- Drop
anticheat-lite.pwninfilterscripts/ - Add
filterscripts anticheat-litetoserver.cfg - Compile and restart
Configuration
Edit anticheat/config.inc — all thresholds are named constants, not magic numbers.
License
MIT + Razi
Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью