Soccer Anti-Abuse Fixes (olds.ro) 1.0.0
Copyright (C) 2026 daemon (olds.ro). Licence: GPL-3.0-or-later.
Fixes common abuse in SoccerJam style matches.
- Goal camping: a player who stays within olds_sa_goalbox units of a goal for
olds_sa_camptime seconds is put back out toward the centre (engfunc EngFunc_SetOrigin,
only onto a free spot) and warned with HUD text once a round.
- Ball hogging: one player may touch the ball olds_sa_maxtouch times in a row; further
touches are ignored (the ball Touch is blocked) with a notice until another player
touches it or the ball is left alone for 3 seconds.
- Stuck ball: a ball that has not moved for olds_sa_stuck seconds is put back at the centre
with no velocity (a carried ball does not count).
- Kick-off: damage between players is blocked for olds_sa_kickoff seconds after the
whistle: the end of the freeze time, or the ball going back to the centre.
- Everything done is written to logs/olds_sa.log with the player's name and SteamID.
- amx_sa_status (ADMIN_KICK) shows the ball, the goals and the players.
Goals and centre: configs/olds_sa_<map>.ini ("goal x y z", "centre x y z", see
olds_sa_example.ini), else the map's soccerjam_goalnet and soccerjam_ballspawn entities.
olds_sa_ball "PwnBall" names the ball classname(s) of the soccer mod, separated by spaces.
Cvars: olds_sa_maxtouch 3, olds_sa_goalbox 200, olds_sa_camptime 8, olds_sa_stuck 6,
olds_sa_kickoff 3, olds_sa_ball "PwnBall".
No downloads (stock buttons/button10.wav). Install: compile scripting/olds_soccerfix.sma
with amxxpc 1.10 (engine, fakemeta, ReAPI), add olds_soccerfix.amxx to plugins.ini after
the soccer mod and copy data/lang/olds_soccerfix.txt.