Raised This Month: $ Target: $400
 0% 

[CS:GO/ANY] Player Souls


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
FrAgOrDiE
AlliedModders Donor
Join Date: May 2018
Location: Italy
Plugin ID:
7126
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 05-25-2020 , 08:29   [CS:GO/ANY] Player Souls
    Reply With Quote #1

    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 destroy his soul.

    CVARS
    Code:
    // Store credits a client will get respawning a player
    // -
    // Default: "0"
    // Minimum: "0.000000"
    sm_souls_credits_on_respawn "0"
    
    // Store credits a client will get stealing a player's soul
    // -
    // Default: "0"
    // Minimum: "0.000000"
    sm_souls_credits_on_steal "0"
    
    // 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"
    
    // Should souls not be spawned when Last Request is available? (Only for JailBreak servers)
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_disable_on_lr "1"
    
    // Choose if respawning players is enabled or not
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_enable_respawning "1"
    
    // Enable support for SQL
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_enable_sql "0"
    
    // Choose if stealing a soul is enabled or not
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_enable_stealing "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"
    // Minimum: "1.000000"
    // Maximum: "3.000000"
    sm_souls_teams "3"
    
    // Only the warden's soul will be spawned
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_souls_warden_only "0"
    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 clientbool 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 clientint target
    Screenshots




    How to use SQL
    First set sm_souls_enable_sql "1" 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
    __________________
    Add me on discord: FrAgOrDiE#5182
    Add me on steam: https://steamcommunity.com/id/fragordie002/
    Join my discord server: http://discord.gg/JpAUXMn

    Last edited by FrAgOrDiE; 11-03-2020 at 08:26.
    FrAgOrDiE is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 05:31.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode