Skip to content
Open

v3.1 #72

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
88abcd8
fix phrase
R1KO Jun 11, 2019
d44f44d
fix api features
R1KO Jun 11, 2019
ae684c1
fix inc
R1KO Jun 11, 2019
abf1077
Fix lang error
R1KO Sep 18, 2019
2f36889
Add sort_menu.ini
R1KO Sep 18, 2019
a347fd5
Add times.ini
R1KO Sep 18, 2019
e0321a6
Add groups.ini
R1KO Sep 18, 2019
c028d93
Update groups.ini
R1KO Sep 18, 2019
8019681
fix native "VIP_OnShowClientInfo"
R1KO Sep 24, 2019
7fe0474
Update vip_core.inc
R1KO Oct 17, 2019
9ee6326
Update API.sp
R1KO Oct 17, 2019
e5d50c1
Update Global.sp
R1KO Oct 17, 2019
8b142af
Update UTIL.sp
R1KO Oct 17, 2019
63be9e4
Add VIP_BuildModulesPath func
R1KO Oct 29, 2019
215ef54
Update CMD.sp
R1KO Jan 7, 2020
0c4612e
issue 70 (fix VIP_SetClientVIPGroup)
R1KO Jan 2, 2021
802d6ff
refactoring api errors & fix issue 65
R1KO Jan 2, 2021
d08eabf
fix issue 68
R1KO Jan 2, 2021
abf6f67
fix issue 46
R1KO Jan 2, 2021
727848a
fix issue 40
R1KO Jan 2, 2021
a93ef49
fix compile on sm 1.10
R1KO Jan 2, 2021
8cdbdc1
pull gitlab & fix conflicts
R1KO Jan 2, 2021
342dfe8
fix .inc style
R1KO Jan 2, 2021
3f53aff
fix end files
R1KO Jan 2, 2021
cd7a76f
fix inc forwards
R1KO Jan 2, 2021
01f54c3
refactor VIP Menu
R1KO Jan 2, 2021
c9694cf
fix codestyle
R1KO Jan 2, 2021
5754814
Merge pull request #71 from R1KO/pull_from_gitlab
R1KO Jan 2, 2021
7b67cea
Remove whitespaces
Jan 25, 2021
33bae05
Fix empty items in menu
Jan 25, 2021
8e7f36b
Change charset uft8 -> utf8mb4
Jan 26, 2021
b5ffe5e
Removed unnecessary variable
Jan 26, 2021
a589008
Fix: FormatEx
Jan 26, 2021
eca4fd2
Merge pull request #75 from diller110/SELECTABLE-fix
R1KO Jan 26, 2021
88c564a
fix compile in sm 1.9
R1KO Jan 29, 2021
c5d972f
fix translate
R1KO Mar 8, 2021
2e67245
Merge pull request #80 from R1KO/i_79
R1KO Mar 8, 2021
0a6277f
fix errors
R1KO Mar 8, 2021
cae4745
Update vip_core.phrases.txt
crashzk Mar 8, 2021
7704ccb
Update Português-BR
crashzk Mar 8, 2021
ecd5d67
Update info.ini
crashzk Mar 8, 2021
9f8e8c8
Update info.ini
crashzk Mar 9, 2021
34df85c
Update Translations
crashzk Mar 9, 2021
7fe4ba5
Update vip_core.phrases.txt
crashzk Mar 9, 2021
55fc859
Update vip_core.phrases.txt
crashzk Mar 9, 2021
092fdf9
another update
freakexeuLow Apr 11, 2021
1a75284
Update vip_core.phrases.txt
freakexeuLow Apr 11, 2021
1a13530
Update vip_core.phrases.txt
freakexeuLow Apr 11, 2021
eb35da9
Merge pull request #85 from freakexeuLow/patch-2
R1KO Apr 11, 2021
7261cec
Fix Minors Data
crashzk Apr 17, 2021
792fea7
Update vip_core.phrases.txt
crashzk Apr 17, 2021
a1f5268
Update vip_core.phrases.txt
crashzk Apr 17, 2021
5e70568
Update info.ini
crashzk Apr 19, 2021
1a567e7
Update vip_core.phrases.txt
crashzk Apr 19, 2021
15d2f1a
Update vip_core.phrases.txt
crashzk Apr 19, 2021
c6aefe9
Merge branch '3.1-dev' into 3.1-dev
R1KO Apr 19, 2021
6e2bde0
Merge pull request #81 from crashzk/3.1-dev
R1KO Apr 19, 2021
2b5c8d2
Update vip_core.inc
R1KO May 30, 2021
a737397
Create vip_modules.phrases.txt
R1KO May 30, 2021
89eae97
add turn of features when delete vip status
R1KO May 30, 2021
d42b48e
rename CreateForward to CallForward
R1KO May 30, 2021
950ed73
remake core version & add interface version
R1KO May 30, 2021
a3e9c65
add internal storage
R1KO May 30, 2021
aca3b94
refactoring macro
R1KO Jun 28, 2021
ff04f0e
fix memory leak
R1KO Jul 2, 2021
d1958a3
Merge branch '3.1-dev' of github.com:R1KO/VIP-Core into add_internal_…
R1KO Jul 2, 2021
56be2a2
fix CI
R1KO Jul 2, 2021
245711e
fix CI
R1KO Jul 2, 2021
b873f70
fix timer
R1KO Sep 17, 2021
1ea1107
fix forwards order logic
R1KO Oct 5, 2021
e1089c4
move add vip player to other file
R1KO Oct 5, 2021
380e690
move remove vip player to other file
R1KO Oct 5, 2021
e37defb
fix admin messages
R1KO Oct 5, 2021
3185340
remake call forwards & fix load features
R1KO Oct 30, 2021
22e0ee1
extends groups API
R1KO Nov 25, 2021
194a2d0
fix declare natives
R1KO Dec 7, 2021
51013ba
add forward "VIP_OnConfigsLoaded"
R1KO Dec 7, 2021
aa5a912
Update VIP_Core.sp
R1KO Dec 7, 2021
e17d231
fix debug
R1KO Dec 28, 2021
f67fc55
Merge branch 'add_internal_storage' of github.com:R1KO/VIP-Core into …
R1KO Dec 28, 2021
c3cf2b6
Forgotten ";"
domikuss Feb 13, 2022
a35f244
Merge pull request #99 from domikuss/patch-1
R1KO Feb 13, 2022
90b6180
fix display empty vip menu
R1KO Mar 20, 2022
0e40e3b
Merge branch 'add_internal_storage' of github.com:R1KO/VIP-Core into …
R1KO Mar 20, 2022
9f44518
refactor macros
R1KO Mar 20, 2022
56dfbb1
fix return statements
R1KO Mar 20, 2022
a9aa132
add build
R1KO Mar 20, 2022
12d4045
build
R1KO Mar 20, 2022
a0fe84c
fix build
R1KO Mar 20, 2022
abe4e34
fix build
R1KO Mar 20, 2022
d086be4
fix build
R1KO Mar 20, 2022
5fd895f
fix upload artifacts
R1KO Mar 20, 2022
17a3a8c
fix create artifacts
R1KO Mar 20, 2022
2a8d16a
fix ci
R1KO Mar 20, 2022
e36d4b0
Merge pull request #88 from R1KO/add_internal_storage
R1KO Apr 5, 2022
bdffc79
fix compile errors
R1KO Apr 5, 2022
0c7ba9a
fix open vip menu from api
R1KO Apr 5, 2022
13f1615
Merge branch 'master' of github.com:R1KO/VIP-Core into 3.1-dev
R1KO Apr 5, 2022
d58c1d8
fix ci
R1KO Apr 10, 2022
b6c0ce9
Merge branch 'master' of github.com:R1KO/VIP-Core into 3.1-dev
R1KO Apr 10, 2022
ca1d22a
Add cvar "sm_vip_storage_id"
R1KO Apr 10, 2022
8a12a8f
fix "VIP_OnFeatureToggle"
R1KO Apr 16, 2022
77c0114
Fix mysql server id
R1KO Apr 19, 2022
b48a3ec
Typo
domikuss Apr 25, 2022
be71ee0
Typo and tab fix
domikuss Apr 25, 2022
a2a0beb
Update List.sp
domikuss Apr 25, 2022
6897846
Merge pull request #102 from domikuss/3.1-dev
R1KO Apr 25, 2022
2a738ca
fix errors
R1KO Sep 11, 2022
8ffc3e7
Update Cvars.sp
domikuss Oct 7, 2022
65efb09
Merge pull request #115 from domikuss/3.1-dev
R1KO Oct 8, 2022
f2d22a2
Update build.yml
crashzk Sep 17, 2023
c6beeef
Update build.yml
crashzk Sep 17, 2023
75da6f7
Update build.yml
crashzk Sep 17, 2023
6c0d638
Update build.yml
crashzk Sep 17, 2023
344c467
Update build.yml
crashzk Sep 17, 2023
f379c66
Merge pull request #126 from crashzk/3.1-dev
R1KO Sep 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.sp gitlab-language=cpp
*.inc gitlab-language=cpp
*.inc gitlab-language=cpp
* text eol=lf
39 changes: 18 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ on: [push, pull_request, workflow_dispatch]
jobs:
compile:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.sm-version == '1.11.x' }}
continue-on-error: ${{ matrix.sm-version == '1.12.x' }}
strategy:
matrix:
sm-version: [ '1.9.x', '1.10.x', '1.11.x' ]
include:
- sm-version: "1.11.x" # https://github.com/rumblefrog/setup-sp/issues/5
compiler-options: "-i=$includePath"
sm-version: [ '1.10.x', '1.11.x', '1.12.x' ]

name: "Build SM ${{ matrix.sm-version }}"
steps:
Expand All @@ -35,7 +32,7 @@ jobs:
mkdir plugins
cd scripting
spcomp VIP_Core.sp -E -o ../plugins/VIP_Core.smx -iinclude ${{ matrix.compiler-options }}

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand All @@ -44,7 +41,7 @@ jobs:
addons
LICENSE
retention-days: 2

release:
name: Release
if: github.ref_type == 'tag'
Expand All @@ -57,15 +54,15 @@ jobs:
- name: Find Assets
shell: bash
run: |
echo "artifact-1_9=$(find * -maxdepth 0 -type d -name "*1.9*")" >> $GITHUB_ENV
echo "artifact-1_10=$(find * -maxdepth 0 -type d -name "*1.10*")" >> $GITHUB_ENV
echo "artifact-1_11=$(find * -maxdepth 0 -type d -name "*1.11*")" >> $GITHUB_ENV

echo "artifact-1_12=$(find * -maxdepth 0 -type d -name "*1.12*")" >> $GITHUB_ENV

- name: Arhive Assets
run: |
zip -r ${{ env.artifact-1_9 }}.zip ${{ env.artifact-1_9 }}
zip -r ${{ env.artifact-1_10 }}.zip ${{ env.artifact-1_10 }}
zip -r ${{ env.artifact-1_11 }}.zip ${{ env.artifact-1_11 }}
zip -r ${{ env.artifact-1_12 }}.zip ${{ env.artifact-1_12 }}

- name: Create Release
id: create_release
Expand All @@ -77,33 +74,33 @@ jobs:
release_name: ${{ github.ref_name }}
draft: true
prerelease: false
- name: Upload Asset

- name: Upload Asset 1.10
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.artifact-1_9 }}.zip
asset_name: ${{ env.artifact-1_9 }}.zip
asset_path: ${{ env.artifact-1_10 }}.zip
asset_name: ${{ env.artifact-1_10 }}.zip
asset_content_type: application/zip

- name: Upload Asset
- name: Upload Asset 1.11
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.artifact-1_10 }}.zip
asset_name: ${{ env.artifact-1_10 }}.zip
asset_path: ${{ env.artifact-1_11 }}.zip
asset_name: ${{ env.artifact-1_11 }}.zip
asset_content_type: application/zip

- name: Upload Asset
- name: Upload Asset 1.12
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.artifact-1_11 }}.zip
asset_name: ${{ env.artifact-1_11 }}.zip
asset_content_type: application/zip
asset_path: ${{ env.artifact-1_12 }}.zip
asset_name: ${{ env.artifact-1_12 }}.zip
asset_content_type: application/zip
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode/
*.smx
*.code-workspace
59 changes: 0 additions & 59 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions addons/sourcemod/data/vip/cfg/info.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"time" "12" // Через сколько секунд меню будет закрыто автоматически (0 - пока игрок сам не закроет) | After how many seconds the menu will be closed automatically (0 - until the player closes himself)
"ru"
{
// Пукнты меню | Menu Items
// Пункты меню | Menu Items
"item" "Вы имеете VIP-статус"
"item" "SPACER"
"item" "Ник: {NAME}"
Expand Down Expand Up @@ -62,7 +62,7 @@
"time" "30" // Через сколько секунд меню будет закрыто автоматически (0 - пока игрок сам не закроет) | After how many seconds the menu will be closed automatically (0 - until the player closes himself)
"ru"
{
// Пукнты меню | Menu Items
// Пункты меню | Menu Items
"item" "Вы имеете VIP-статус"
"item" "Группа: {GROUP}"
}
Expand All @@ -85,7 +85,7 @@
"time" "12" // Через сколько секунд меню будет закрыто автоматически (0 - пока игрок сам не закроет) | After how many seconds the menu will be closed automatically (0 - until the player closes himself)
"ru"
{
// Пукнты меню | Menu Items
// Пункты меню | Menu Items
"item" "У вас нет доступа к этому меню"
"item" "Чтобы приобрести VIP-статус"
"item" "Oбратитесь к администратору"
Expand Down Expand Up @@ -118,7 +118,7 @@
"time" "12" // Через сколько секунд меню будет закрыто автоматически (0 - пока игрок сам не закроет) | After how many seconds the menu will be closed automatically (0 - until the player closes himself)
"ru"
{
// Пукнты меню | Menu Items
// Пункты меню | Menu Items
"item" "Срок вашего VIP-статуса истек"
"item" "Чтобы вновь приобрести VIP-статус"
"item" "Oбратитесь к администратору"
Expand Down
24 changes: 16 additions & 8 deletions addons/sourcemod/scripting/VIP_Core.sp
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,37 @@

#include <sourcemod>
#include <vip_core>
#include <clientprefs>

#if !defined VIP_VERSION
#define VIP_VERSION "3.0.3 R"
#if !defined VIP_CORE_VERSION
#define VIP_CORE_VERSION "3.1.0 DEV"
#endif


#define DEBUG_MODE 0 // Режим отладки
#define DEBUG_MODE 0 // Режим отладки

#define USE_ADMINMENU 1 // Включение админ-меню для управления VIP

#define USE_MORE_SERVERS 1 // Включить/Отключить режим при котором если ID сервера у игрока 0 - то VIP будет работать на всех серверах

#define USE_CLIENTPREFS 0 // Использовать ли стандартные куки для хранения данных игроков

#if USE_CLIENTPREFS 1
#include <clientprefs>
#endif

public Plugin myinfo =
{
name = "[VIP] Core",
author = "R1KO",
version = VIP_VERSION,
version = VIP_CORE_VERSION,
url = "https://github.com/R1KO/VIP-Core"
};

#include "vip/Global.sp"
#include "vip/Debug.sp"
#include "vip/Debugger.sp"
#include "vip/Downloads.sp"
#include "vip/Colors.sp"
#include "vip/UTIL.sp"
#include "vip/Storage.sp"
#include "vip/Features.sp"
#include "vip/Sounds.sp"
#include "vip/Info.sp"
Expand Down Expand Up @@ -74,6 +78,11 @@ public void OnPluginStart()
ITEM_DRAW = hDataPack.Position;
delete hDataPack;


g_bIsTranslationPhraseExistsAvailable = (CanTestFeatures() &&
GetFeatureStatus(FeatureType_Native, "TranslationPhraseExists") == FeatureStatus_Available);

API_SetupForwards();
ReadConfigs();

VIPMenu_Setup();
Expand All @@ -82,7 +91,6 @@ public void OnPluginStart()
#endif

Cvars_Setup();
API_SetupForwards();

HookEvent("player_spawn", Event_PlayerSpawn);
HookEvent("player_death", Event_PlayerDeath);
Expand Down
Loading