Info: https://hlmod.ru/resources/ac-advert-reklamnye-soobschenija.1237/
Plugin requires: sm-ripext
Check: Commit 5138ac8 for v1 New plugin use provider as data source. (Check hlmod.ru for provider url)
Use convars in server.cfg:
sm_adv_provider "https://acboard.ru/dot/api"
sm_adv_token "YOUR_PERSONAL_TOKEN"
sm_adv_provider "http://PROVIDER_URL/api"
- Url of data providersm_adv_token "YOUR_PERSONAL_TOKEN"
- Account token, find it on main provider's page after log insm_adv_allow_cmd "0"
- 0/1, Enable ServerExecute from adv cmd, for update ads from web, or hot messages cmds.sm_adv_force_ip ""
- "",1,"custom ip", Force set server ip (empty - default, 1 - hostip, or custom ip)
- Move /web/advert/... to your /path/...
- Copy /path/app/config.example.ini to /path/app/config.ini
- Create database/user execute SQL from:
/web/SQL запрос.txt
- Fill required settings in /path/app/config.ini: db credentials, and crypto_key (30 random characters, e.g. from https://passwordsgenerator.net/)
- Register new account, add servers, words, ads, etc.
- Install sm-ripext
- Add convars
sm_adv_provider
,sm_adv_token
to server.cfg - Move /server/plugins/ac_advert.smx to /addons/sourcemod/plugins/...
- Restart server or
sm plugins load ac_advert2