[Shop] Money Distributor

Plugin-Module [Shop] Money Distributor v1.4.2

No permission to download
Supported Games
CS: Source (v34), CS: Source (Steam/Orange Box), CS: GO
This is module of the Shop plugin. It distributes credits to players at random events in the game such as on kill, on round win etc.


345


Requirements :
Installation :
  • Download shop_money_distributor.zip file from this post.
  • Extract the contents of zip file and put it into cstrike folder of your server.
  • Restart the server or change the map.
Admin Commands :
Code:
!shop_money_reload            -             Reloads the money configuration file.
CVARs :
// Amount of credits all players get every time.
// -
// Default: "5"
// Minimum: "1.000000"
sm_shop_credits_amount "5"

// The interval of timer. Less than 1 to disable
// -
// Default: "60.0"
// Minimum: "0.000000"
sm_shop_credits_interval "120.0"

// Don't listen to events on round end
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_shop_credits_stop_events_on_round_end "1"

Configuration :
Code:
"Events"
{
    // Events Information
    // For full list of events, visit - http://wiki.alliedmods.net/Game_Events_(Source)
    "player_death"        // Player Death Event
    {
        "userid"        // Event Parameter - The Player who died
        {
            "type"        "userid"                                                                                       // Parameter Type ("userid" and "int" available)
            "credits"    "-5"                                                                                           // Amount of credits to be subtracted. Use negative numbers
            "text"        "{green}[Shop] {default}You lost {green}{credits} {default}credits on death."                   // Chat Notification to player
        }
        "attacker"        // Event Parameter - The Player who killed
        {
            "type"        "userid"                                                                                        // Parameter Type ("userid" and "int" available)
            "credits"    "5"                                                                                                // Amount of credits to be added. Use positive numbers
            "text"        "{green}[Shop] {default}You received {green}{credits} {default}credits for killing."            // Chat Notification to player
        }
    }
    "round_end"             // On round end
    {
        "all"
        {
            "team"            "winner"                                                                                    // Team, which to issue credits. Numbers to indicate a specific command index or parameter from an event to get a command index from an event
            "teamfilter"    "0"                                                                                            // Filter Command. Ignore team player of specified index. You can also use event parameters
            "alive"            "0"                                                                                            // Include only alive players for credits
            "credits"        "5"                                                                                            // Credit amount to be given, you can also use negative numbers.
            "text"            "{green}[Shop] {default}You've earned {green}{credits} {default}credits for victory."       // Chat Notification to players
        }
    }
    "round_start"         // On round start
    {
        "no_copy"    "1"     // For optimization, only include when event parameters are missing
        "all"
        {
            "team"            "0"                                                                                            // 0 - All players
            "teamfilter"    "1"                                                                                            // Filter the observers/spectators, because they are not playing
            "alive"            "0"                                                                                            // All players are alive at the beginning
            "credits"        "3"                                                                                            // Credit amount to be given, you can also use negative numbers.
            "text"            "{green}[Shop] {default}You've received {green}{credits} {default}credits on round start."    // Chat Notification to players
        }
    }
}

Credits :
  • FrozDark
  • Like
  • Love
Reactions: dev893 and kaito
Author
Vertigo
Downloads
64
Views
1K
First release
Last update
Rating
4.50 star(s) 2 ratings

More resources from Vertigo

Share this resource

Latest reviews

thanks
Good. But Doesnt works below Sourcemod 1.nine .{broken number keys xd}.. Anyways Tried on sm nine and eight worked with nine but not eight.
Vertigo
Vertigo
The plugin is compiled under SM 1.9. To get it work under 1.8. You need to compile it with 1.8
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock