Releases: partiusfabaa/cs2-VIPCore
Releases · partiusfabaa/cs2-VIPCore
v1.0.9
- Now you can add a player with steamid 64.
- Now players receive VIP immediately without the need to re-enter the server.
v1.0.8
- Added 2 new commands -
css_vip_updatetime
andcss_vip_updategroup
these commands update the player's time and group. - Now in commands, the first parameter
<steamid or accountid>
- steamid to interact with a player who is on the server, and accountid to interact with a player who is offline, can be used in all commands. - Added
menu.Title
to translations
Full commands:
css_vip_adduser <steamid or accountid> <group> <time>
css_vip_updategroup <steamid or accountid> <group>
css_vip_updatetime <steamid or accountid> <time>
css_vip_deleteuser <steamid or accountid>
v1.0.7
Added a new function that creates a config. Example of use:
using CounterStrikeSharp.API.Core;
using Modularity;
using VipCoreApi;
namespace TestConfig;
public class TestConfig: BasePlugin, IModulePlugin
{
public override string ModuleName { get; }
public override string ModuleVersion { get; }
private IVipCoreApi _api;
private TestConfig config;
public void LoadModule(IApiProvider provider)
{
_api = provider.Get<IVipCoreApi>();
//Write the title without the .json
config = _api.LoadConfig<TestConfig>("name_config"); // You can also specify the path with the 2nd argument, but it is not necessary. By default the path to modules will be
}
}
public class TestConfig
{
public int Test1 { get; set; } = 50;
public bool Test2 { get; set; } = true;
public string Test3 { get; set; } = "TEST";
public float Test4 { get; set; } = 30.0f;
}
v1.0.6
Added a new function for getting a connection to the database (api.GetDatabaseConnection
)
v1.0.5
2 new functions were added to the API:
- PrintToChatAll(message) - displays chat messages for all players
- IsPistolRound() - checks if the current game round is a pistol round.
v1.0.4
- Now the string from the json comes out fine
- The on/off notification now works from the kernel
v1.0.3
added arguments to GetTranslatedText
v1.0.2: Merge pull request #1 from crashzk/patch-1
add: Translations pt-BR.json
v1.0.1
- Added VIP expiration message display
- Translations have also been added
v1.0.0
Update README.md