S
描述
SA-MP 是一个免费的 PC 版 Rockstar Games 的 Grand Theft Auto: San Andreas (tm) 大型多人在线游戏模组。
92 浏览
6 下载
2026-07-01
更新于 1 天前
预设配置详情
SA:MP
SA:MP GTA San Andreas 专用服务器
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/games:samp
./samp03svr
| 变量名 | 变量 | 描述 | 默认值 | 规则 | 可查看 | 可编辑 |
|---|---|---|---|---|---|---|
| 版本 | Version |
示例:如果下载链接为 https://sampcenter.com/download/server/linux/0.3.7.tar.gz,则变量的值为:`0.3.7` | 0.3.7 |
required|string|max:32
必填 字符串 最大 32
|
||
| Rcon密码 | RCON_PASS |
用于rcon的密码 | |
required|string|max:32
必填 字符串 最大 32
|
镜像
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian
入口
bash
#!/bin/bash
# Check if VERSION is set and starts with an uppercase "R"
if [[ -n "$VERSION" && "$VERSION" == R* ]]; then
VERSION="0.3.7"
echo "Updated VERSION: $VERSION"
fi
cd /tmp || exit
echo "running: curl -sSL -o samp.tar.gz https://sampcenter.com/download/server/linux/${VERSION}.tar.gz"
curl -sSL -o samp.tar.gz https://sampcenter.com/download/server/linux/${VERSION}.tar.gz
mkdir -p /mnt/server
tar -xzvf samp.tar.gz --strip-components=1 -C /mnt/server/
cd /mnt/server || exit
sed -i '3d' /mnt/server/server.cfg
echo "rcon_password ${RCON_PASS}" >> /mnt/server/server.cfg
chown -R root:root /mnt
export HOME=/mnt/server
## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": "https://eggs.pterodactyl.top/eggs/225/download/egg-sa-mp.json",
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T00:17:08+00:00",
"name": "SA-MP",
"author": "bl4ckspr4y@protonmail.com",
"description": "SA-MP 是一个免费的 PC 版 Rockstar Games 的 Grand Theft Auto: San Andreas (tm) 大型多人在线游戏模组。",
"features": null,
"docker_images": {
"Samp": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/games:samp"
},
"file_denylist": [],
"startup": "./samp03svr",
"config": {
"files": "{\r\n \"server.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"port\": \"port {{server.build.default.port}}\",\r\n \"rcon_password\": \"rcon_password {{server.build.env.RCON_PASS}}\"\r\n }\r\n }\r\n}",
"logs": "{}",
"startup": "{\r\n \"done\": \"Started server on \"\r\n}",
"stop": "^^C"
},
"scripts": {
"installation": {
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
"entrypoint": "bash",
"script": "#!/bin/bash\r\n\r\n# Check if VERSION is set and starts with an uppercase \"R\"\r\nif [[ -n \"$VERSION\" && \"$VERSION\" == R* ]]; then\r\n VERSION=\"0.3.7\"\r\n echo \"Updated VERSION: $VERSION\"\r\nfi\r\n\r\ncd /tmp || exit\r\necho \"running: curl -sSL -o samp.tar.gz https://sampcenter.com/download/server/linux/${VERSION}.tar.gz\"\r\ncurl -sSL -o samp.tar.gz https://sampcenter.com/download/server/linux/${VERSION}.tar.gz\r\n\r\nmkdir -p /mnt/server\r\ntar -xzvf samp.tar.gz --strip-components=1 -C /mnt/server/\r\n\r\ncd /mnt/server || exit\r\n\r\nsed -i '3d' /mnt/server/server.cfg\r\necho \"rcon_password ${RCON_PASS}\" >> /mnt/server/server.cfg\r\n\r\nchown -R root:root /mnt\r\n\r\nexport HOME=/mnt/server\r\n\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
}
},
"variables": [
{
"name": "版本",
"description": "示例:如果下载链接为 https://sampcenter.com/download/server/linux/0.3.7.tar.gz,则变量的值为:`0.3.7`",
"env_variable": "Version",
"default_value": "0.3.7",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:32",
"field_type": "text"
},
{
"name": "Rcon密码",
"description": "用于rcon的密码",
"env_variable": "RCON_PASS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:32",
"field_type": "text"
}
]
}附属文件
暂无附属文件
Fork 关系
查看关系图暂无 Fork,成为第一个 Fork 的人吧!
统计
92
浏览
6
下载
0
星标
0
复刻
作者
飒
飒爽师叔
UID: 1
279 预设
·
2026-06