- 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.
Requirements :
CVARs :
Configuration :
Credits :
Requirements :
- Sourcemod v1.8 or Higher
- Shop Core
- 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.
Code:
!shop_money_reload - Reloads the money configuration file.
// 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"
// -
// 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