Advertisement
Yaaruu

SAMP tasks.json

Jul 8th, 2025
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.53 KB | None | 0 0
  1. {
  2.     "version": "2.0.0",
  3.     "tasks": [
  4.         {
  5.             "label": "Compile test.pwn",
  6.             "type": "shell",
  7.             "command": "${workspaceFolder}\\qawno\\pawncc.exe",
  8.             "args": [
  9.                 "${workspaceFolder}\\gamemodes\\test.pwn",
  10.                 "--%",
  11.                 "-i${workspaceFolder}\\qawno\\include",
  12.                 "-o${workspaceFolder}\\gamemodes\\test.amx",
  13.                 "-;+",
  14.                 "-(+",
  15.                 "-d3",
  16.             ],
  17.             "group": {
  18.                 "kind": "build",
  19.                 "isDefault": true
  20.             },
  21.             "presentation": {
  22.                 "echo": true,
  23.                 "reveal": "always",
  24.                 "focus": false,
  25.                 "panel": "shared"
  26.             },
  27.             "problemMatcher": [],
  28.             "detail": "Compile test.pwn gamemode using Pawn compiler"
  29.         },
  30.         {
  31.             "label": "Compile All Gamemodes",
  32.             "type": "shell",
  33.             "command": "powershell.exe",
  34.             "args": [
  35.                 "-Command",
  36.                 "Get-ChildItem -Path '${workspaceFolder}\\gamemodes' -Filter '*.pwn' | ForEach-Object { Write-Host \"Compiling $($_.Name)...\"; & '${workspaceFolder}\\qawno\\pawncc.exe' $_.FullName \"-i${workspaceFolder}\\qawno\\include\" \"-o$($_.FullName -replace '\\.pwn$', '.amx')\" \"-d3\" \"-;+\" \"-(+\" \"-\\+\" }"
  37.             ],
  38.             "group": "build",
  39.             "presentation": {
  40.                 "echo": true,
  41.                 "reveal": "always",
  42.                 "focus": false,
  43.                 "panel": "shared"
  44.             },
  45.             "problemMatcher": [],
  46.             "detail": "Compile all PWN files in gamemodes directory"
  47.         },
  48.         {
  49.             "label": "Start Server",
  50.             "type": "shell",
  51.             "command": "${workspaceFolder}\\omp-server.exe",
  52.             "group": "test",
  53.             "presentation": {
  54.                 "echo": true,
  55.                 "reveal": "always",
  56.                 "focus": true,
  57.                 "panel": "dedicated"
  58.             },
  59.             "isBackground": true,
  60.             "problemMatcher": [],
  61.             "detail": "Start the open.mp server"
  62.         },
  63.         {
  64.             "label": "Compile and Start Server",
  65.             "dependsOrder": "sequence",
  66.             "dependsOn": [
  67.                 "Compile test.pwn",
  68.                 "Start Server"
  69.             ],
  70.             "group": "build",
  71.             "detail": "Compile test.pwn and then start the server"
  72.         }
  73.     ]
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement