Installation¶
Drop the platform-specific binary into your server's plugins/ folder and register it. The same binaries work on SA-MP and Open Multiplayer.
Artifacts¶
Each release at github.com/NullSablex/env-samp/releases ships:
env_samp.so— Linux i686 (i686-unknown-linux-gnu).env_samp.dll— Windows i686 (i686-pc-windows-msvc).env_samp.inc— Pawn include, identical for SA-MP and Open Multiplayer.
SA-MP¶
- Copy
env_samp.so/env_samp.dllintoplugins/. - Copy
env_samp.incintopawno/include/. - Register under
plugins=inserver.cfg:
Open Multiplayer (native component, recommended)¶
Drop the binary into the server's components/ folder. open.mp auto-discovers it on start and loads it via ComponentEntryPoint, with access to ICore, ITimersComponent and the other native APIs. No config.json entry is required — native components are discovered by scanning the folder, not by declaration.
Open Multiplayer (legacy mode)¶
Drop the binary into plugins/ and declare it under pawn.legacy_plugins in config.json (legacy plugins must be listed explicitly, unlike native components):
.env file¶
Place a .env file alongside your server executable. The plugin reads ./.env on OnGameModeInit. See .env format for the accepted syntax.
A ready-made template lives in the repository at examples/env — copy it to .env and replace the values.
Example gamemode¶
A minimal Pawn script wiring every supported type lives at examples/example.pwn. It's also the script used to smoke-test the plugin during development.