Quote:
Originally Posted by FrAgOrDiE
Description
This plugin spawns souls above dead bodies. Players can interact with souls by pressing CTRL + E: if you`re interacting with a teammate`s soul you`re gonna respawn him, otherwise you will break his soul.
CVARS
Code:
// SQL database entry in configs/databases.cfg
// -
// Default: "souls"
sm_souls_db_confname "souls"
// Disallow attacking while interacting with a soul
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_souls_disable_attack "1"
// Enable support for SQL
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_souls_enable_sql "1"
// Time required to steal/respawn a soul
// -
// Default: "6"
sm_souls_interact_time "6"
// For which teams should souls be spawned (1 = only Ts, 2 = only CTs, 3 = BOTH)
// -
// Default: "3"
sm_souls_teams "3"
API
PHP Code:
/**
* Returns client's stolen souls (sql).
*
* @param Client Steam64ID.
*/
native int Souls_GetClientStolenSouls(char[] sSteam64);
/**
* Returns client's respawns (sql).
*
* @param Client Steam64ID.
*/
native int Souls_GetClientRespawnedClients(char[] sSteam64);
/**
* Toggles soul for a dead player.
*
* @param Client Index.
* @param true to enable, false to disable.
*/
native void Souls_ToggleSoul(int client, bool toggle)
/**
* Called when a client interact (respawn or steal) with a soul.
*
* @param client Client Index.
* @param target Target Index which who the client is interacting with.
*
* @noreturn
*/
forward void Souls_OnSoulInteraction(int client, int target)
Screenshots
How to use SQL
First set sm_souls_enable_sql "0" in cfg/plugin.galaxy-souls.cfg, then add a new entry in addons/sourcemod/configs/databases.cfg like this:
Code:
"souls"
{
"driver" "mysql"
"host" "ADD_THIS"
"database" "ADD_THIS"
"user" "ADD_THIS"
"pass" "ADD_THIS"
//port" "ADD_THIS"
}
Download
GitHub
|
Hi nice plugin, little advice how about sm_souls_warden_only "1" (for jailbreak mode) only warden can be respawned on ct (no t respawns) it would be awesome jailbreak plugin