This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
generated from K4ryuu/Project_Template
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Extensions
K4ryuu edited this page Mar 29, 2024
·
4 revisions
Here is the list, which I approve and suggest to use in order to extend K4-System.
- K4-Missions: This masterpiece lets you create your own missions to your server, through a really easy json file (5 line per mission). You don't have to configure big codes or so, just easily add few words and the mission is generated automatically. Normal players have less mission slots than VIPs so it's good to entertain your players and get more rank purchase possibly. The code is really really complex for the basic level of CSS scripts, because the hooks are made "dynamically" to support everything.
- There are no community made addons for K4 yet.
Any LVLRanks webpanel can be used to display the statistics on your website, if you enable the lvlranks compatibility and set the required table name (if the default is not suits you). Other than that you can use the following webpanels, which are made for the plugin.
- sdg12321: This is a simple website that displays information from the K4-System and CS2-SimpleAdmin plugin database. MultiServer support.
- PorcusorulMagic: A website which connects to mysql stats from K4-System plugin.
Creating addons to K4-System is pretty easy. You can find some usefull information here for that.
For the commands, you can use @t
, @ct
, @all
, @alive
and #{userId}
in order to properly target a user.
-
Give Points to Players:
Server.ExecuteCommand($"css_givepoints #{player.UserId} 10");
-
Remove Points from Players:
Server.ExecuteCommand($"css_removepoints #{player.UserId} 10");
-
Remove Points from Players:
Server.ExecuteCommand($"css_removepoints #{player.UserId} 10");
-
Reset rank data for Players:
Server.ExecuteCommand($"css_resetrank #{player.UserId}");
- Check if K4-System is installed:
string? path = Directory.GetParent(ModuleDirectory)?.FullName;
if (!Directory.Exists(path + "/K4-System"))
{
base.Logger.LogCritical("Plugin load has been terminated due to a missing dependency. Please install K4-System and try again.");
return;
}