24 changes: 14 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,31 @@ jobs:
name: "Publish"
runs-on: ubuntu-latest
needs: [build]
if: |
github.event_name == 'release' &&
github.event.action == 'published' &&
startsWith(github.ref, 'refs/tags/')

steps:
- name: Download artifacts
- name: Deploying resources artifacts
uses: actions/download-artifact@v2
with:
name: MultiModManagerCS-${{needs.build.outputs.sha}}

- name: Packaging binaries
id: packaging
run: 7z a -mm=Deflate -mfb=258 -mpass=15 -r MultiModManagerCS-v${{needs.build.outputs.semver}}.zip addons/
id: packaging-job
if: |
github.event_name == 'release' &&
github.event.action == 'published' &&
startsWith(github.ref, 'refs/tags/')
run: |
7z a -mm=Deflate -mfb=258 -mpass=15 -r MultiModManagerCS-v${{needs.build.outputs.semver}}.zip addons/
- name: Publish artifacts
uses: softprops/action-gh-release@v1
id: publish-job
if: |
startsWith(github.ref, 'refs/tags/') && ( steps.packaging.outcome == 'success' )
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
startsWith(github.ref, 'refs/tags/') &&
steps.packaging-job.outcome == 'success'
with:
files: |
*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![AMX MOD X](https://badgen.net/badge/Powered%20by/AMXMODX/0e83cd)](https://amxmodx.org)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

# MultiMod Manager [v1.1.0]
# MultiMod Manager CS [v1.1.0]
- [English](#english)
- [Español](#español)

Expand All @@ -24,10 +24,9 @@ Multimod plugin for CS 1.6 / CS:CZ
- Nominations (Mods and Maps)
- Rock The Vote
- Recently played mods and maps
- Say commands _(All say commands can be found [here](https://github.com/FEDERICOMB96/amxx-multimod-manager/wiki/Say-commands))_
- Admin commands (custom votes, manage, force votemod)
- `API` natives and forwards<br>_(All detailed information is in the `addons/amxmodx/scripting/include/multimod_manager_natives.inc` file)_

Toda la información detallada se encuentra en el archivo `include\multimod_manager_natives.inc`
- `API` natives and forwards _(All detailed information is [here](https://github.com/FEDERICOMB96/amxx-multimod-manager/wiki/API))_

## Credits:
- [metita](https://github.com/metita)
Expand Down Expand Up @@ -58,8 +57,9 @@ Plugin de Multimod para CS 1.6 / CS:CZ
- Nominaciones (Modos and Mapas)
- Rock The Vote
- Modos y mapas recientemente jugados
- Comandos de Chat _(Todos los comandos de chat se pueden encontrar [aquí](https://github.com/FEDERICOMB96/amxx-multimod-manager/wiki/Say-commands))_
- Comandos de Administración (votaciones personalizadas, configuracion, forzar una votacion de modo)
- `API` natives y forwards<br>_(Toda la información detallada se encuentra en el archivo `addons/amxmodx/scripting/include/multimod_manager_natives.inc`)_
- `API` natives y forwards _(Toda la información detallada se encuentra [aquí](https://github.com/FEDERICOMB96/amxx-multimod-manager/wiki/API))_

## Créditos:
- [metita](https://github.com/metita)
Expand Down
9 changes: 5 additions & 4 deletions addons/amxmodx/scripting/include/mm_incs/defines.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

#define PLUGIN_NAME "MultiMod Manager"

#define MM_VERSION_MAJOR 1
#define MM_VERSION_MAJOR 2
#define MM_VERSION_MINOR 1
#define MM_VERSION_PATCH 0
#define MM_VERSION_PATCH 2

#define PLUGIN_VERSION fmt("v%d.%d.%d", MM_VERSION_MAJOR, MM_VERSION_MINOR, MM_VERSION_PATCH)

Expand Down Expand Up @@ -57,15 +57,16 @@

#define CHECK_ADMIN_ACCESS(%0,%1) if(~get_user_flags(%0) & %1) { client_print_color(%0, print_team_default, "%s^1 %L", g_GlobalConfigs[ChatPrefix], LANG_PLAYER, "MM_ADMIN_NO_ACC"); return PLUGIN_HANDLED; }

enum
enum (+= 12345)
{
TASK_VOTEMAP = MAX_USERS,
TASK_VOTEMOD,
TASK_TIMELEFT,
TASK_RTV,
TASK_SHOWTIME,
TASK_ENDMAP,
TASK_VOTE_ADMIN
TASK_VOTE_ADMIN,
TASK_FORCE_CHANGE_MAP,
};

const KEYSMENU = (1<<0) | (1<<1) | (1<<2) | (1<<3) | (1<<4) | (1<<5) | (1<<6) | (1<<7) | (1<<8) | (1<<9);
Expand Down