Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Extensions

K4ryuu edited this page Mar 29, 2024 · 4 revisions

Extensions for K4-System

Here is the list, which I approve and suggest to use in order to extend K4-System.

Official Addons

  • 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.

Community Addons

Plugins

  • There are no community made addons for K4 yet.

Webpanels

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.

Create Addons

Creating addons to K4-System is pretty easy. You can find some usefull information here for that.

How to manipulate K4 data

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;
}
Clone this wiki locally