Veteran Member
Join Date: Apr 2015
Location: .de
|
10-05-2016
, 21:13
[CS:GO] MyJailShop (a redux rewrite of Jail Shop) [1.5.0 / 20-08-18]
|
#1
|
Rate Thread
MyJailShop a redux rewrite of Dkmuniz Jail Shop
MyJailShop provide you a high customizable shop with credits system intended for jailbreak server.
Earn credits for playtime, kills, your team won rounds &/or you reach last request.
Shop Items: ° = core, * = extra plugin
Guards & prisoner / CT & T - both:- Heal up to 100HP °
- Armor & extra HP °
- Revive / respawn °
- Bunny Hop °
- Froggy Jump / double jump °
- Low Gravity °
- No Damage / Immortal °
- Wallhack for x sec. ° (optional - need CustomPlayerSkins)
- Jetpack *
- Ice grenade *
- Parachute *
- Tactical shield *
Prisoner / Terrorist - only:- Open Cells ° (optional - need smartjaildoors)
- Vampire / +speed & HP for damage °
- Invisible for x sec. °
- No Clip for x sec. °
- Paperclips for handcuffs °
- Fake Guard Model °
- Teleport smoke °
- Poison smoke °
- Fire Grenade °
- One bullet AWP °
- Seven bullets deagle °
- One hit Knife °
- Throw One hit Knife °
- Three bullets Taser °
- Molotov & flashs °
- Be a Bird °
- Teleport to random T °
- Blackout *
- Open door in sight *
- Jihad *
- MyJB Freeday *
Features:- SourcePawn Transitional Syntax 1.7
- Multilingual support
- Use credit system of alternative stores/shops (zephyrus,frozdark,sm store)
- Console varibale for almost all features!
- Custom chat commands !mycommand
- Custom chat tags [jail.shop]
- Colors
- Natives & forwards - some gambling plugins coming soon!
- VIP flags for items
- great API to insert your own custom items
- extra plugin for credits in HUD
- some other fancy stuff
Commands & convars: only core
Spoiler
Commands:
Spoiler
Quote:
sm_jailshop - Open the jail shop menu
sm_jailcredits - Show your jail shop credits
sm_jailgift - Gift jail shop credits to a player - Use: [b]sm_jailgift <#userid|name> [amount]
sm_revive - Use jail shop item revive
sm_showjailcredits - Show jail shop credits of all online player
|
set your own custom command. take a look at " sm_jailshop_cmds_NAME"
AdminCommands // ADMFLAG_ROOT
Quote:
sm_sale - Toggle Sale - discount all items
sm_jailgive - Give jail shop credits to a player - Use: [b]sm_jailgive <#userid|name> [amount]
sm_jailset - Set jail shop credits of a player - Use: [b]sm_jailgift <#userid|name> [amount]
|
Shop Setting ConVars:
Spoiler
Quote:
sm_jailshop_version - The version of this MyJailShop SourceMod plugin
sm_jailshop_enable - 0 - disabled, 1 - enable the MyJailShop SourceMod plugin
sm_jailshop_credits_system - 1 - MyJailShop Credits, 0 - Zephrus store or 'SM Store' or FrozDark shop (need extra support plugin)
sm_jailshop_credits_save - 0 - disabled, 1 - Save credits on player disconnect
sm_jailshop_mysql - 0 - disabled, 1 - Should we use a mysql database to store credits
sm_jailshop_credits_max - Maximum of credits to earn for a player
sm_jailshop_minplayers - Minimum players to earn credits
sm_jailshop_warmupcredits - 0 - disabled, 1 - enable players get credits on warmup
sm_jailshop_credits_kill_t - Amount of credits a prisoner earns when kill a Guard
sm_jailshop_credits_kill_t_vip - Amount of credits a VIP prisoner earns when kill a Guard
sm_jailshop_credits_kill_ct - Amount of credits a guard earns when kill a prisoner
sm_jailshop_credits_kill_ct_vip - Amount of credits a VIP guard earns when kill a prisoner
sm_jailshop_credits_win_t - 0 - disabled, amount of credits a prisoner earns when win round
sm_jailshop_credits_win_t_vip - 0 - disabled, amount of credits a VIP prisoner earns when win round
sm_jailshop_credits_win_ct - 0 - disabled, amount of credits a guard earns when win round
sm_jailshop_credits_win_ct_vip 0 - disabled, amount of credits a VIP guard earns when win round
sm_jailshop_credits_win_alive 0 - disabled, 1 - only alive player get credits when team win the round
sm_jailshop_credits_lr - Amount of credits for reach last request as prisoner (only if hosties is available)
sm_jailshop_credits_lr_vip - Amount of credits for reach last request as prisoner (only if hosties is available)
sm_jailshop_credits_time_interval - Time in seconds a player recieved credits per time
sm_jailshop_credits_time - 0 - disabled, how many credits players receive for '[b]sm_jailshop_credits_time_interval'
sm_jailshop_credits_time_vip - 0 - disabled, how many credits VIP players receive for '[b]sm_jailshop_credits_time_interval
sm_jailshop_welcome - 0 - disabled, 1 - welcome messages on spawn
sm_jailshop_notification - 0 - disabled, 1 - enable chat notification everytime player get credits
sm_jailshop_buytime - 0 - disabled, Time in seconds after roundstart shopping is allowed
sm_jailshop_buytime_cells - 0 - disabled, 1 - only shopping until cell doors opened (only if smartjaildoors is available)
sm_jailshop_access - 0 - shop available for guards & prisoner, 1 - only prisoner
sm_jailshop_myjb - 0 - disable shopping on MyJailbreak Event Days, 1 - enable shopping on MyJailbreak Event Days (only if myjb is available, show/gift/... credits is still enabled)
sm_jailshop_close - 0 - disabled, 1 - enable close menu after action
sm_jailshop_tag - Allow "MyJailShop" to be added to the server tags? So player will find servers with MyJailShop faster. it dont touch you sv_tags
sm_jailshop_log - Allow MyJailShop to log purchases and gifts in logs/MyJailShop
sm_jailshop_buy_lr - 0 - disabled, 1 - Restrict shopping on last request
sm_jailshop_remove_lr - 0 - disabled, 1 - Remove the bought perks on a last request. (bought weapons stay)
sm_jailshop_removeweapon - 0 - disabled, 1 - When a player already got a prim/sec weapon and buy deagle or awp the current weapon disappear
sm_jailshop_sale_multi - How many percent discount on a sale!
sm_jailshop_cmds_shop - Set your custom chat commands for shop menu(!jailshop (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
sm_jailshop_cmds_gift - Set your custom chat commands for gifting credits(!jailgift (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
sm_jailshop_cmds_revive - Set your custom chat commands for revive(!jailrevive (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
sm_jailshop_cmds_credits - Set your custom chat commands to see you credits (!jailcredits (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
sm_jailshop_cmds_showcredits - Set your custom chat commands for see all online players credits(!showjailcredits (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
|
Shop Item ConVars:
Spoiler
Quote:
sm_jailshop_openjails_price - 0 - disabled, price of the 'Open jails' shop item (only if smartjaildoors is available)
sm_jailshop_openjails_flag - Set flag for admin/vip must have to get access to open cells. No flag = is available for all players!
sm_jailshop_heal_price - 0 - disabled, price of the 'Heal' shop item
sm_jailshop_heal_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
sm_jailshop_heal_flag - Set flag for admin/vip must have to get access to heal. No flag = is available for all players!
sm_jailshop_armor_hp_price - 0 - disabled, price of the 'Armor & HP' shop item
sm_jailshop_health_extra - How many HP get extra with the armor
sm_jailshop_health_extra_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
sm_jailshop_health_flag - Set flag for admin/vip must have to get access to health. No flag = is available for all players!
sm_jailshop_revive_price - 0 - disabled, price of the 'Revive' shop item
sm_jailshop_revive_flag - Set flag for admin/vip must have to get access to revive. No flag = is available for all players!
sm_jailshop_heal_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
sm_jailshop_vampire_price - 0 - disabled, price of the 'Vampire' shop item
sm_jailshop_vampire_speed - Ratio for how fast the player will walk (1 - normal)
sm_jailshop_vampire_multiplier - Multiplier how many heatlh per damage (e.g. 100damage * 0.5 = 50HP extra)
sm_jailshop_vampire_flag - Set flag for admin/vip must have to get access to vampire. No flag = is available for all players!
sm_jailshop_bhop_price - 0 - disabled, price of the 'Bunny Hop' shop item
sm_jailshop_bhop_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
sm_jailshop_bhop_flag - Set flag for admin/vip must have to get access to bhop. No flag = is available for all players!
sm_jailshop_froggyjump_price - 0 - disabled, price of the 'Froggy Jump' shop item
sm_jailshop_froggyjump_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
sm_jailshop_froggyjump_flag - Set flag for admin/vip must have to get access to froggyjump. No flag = is available for all players!
sm_jailshop_gravity_price - 0 - disabled, price of the 'Low Gravity' shop item
sm_jailshop_gravity_value - Ratio for Gravity (1.0 earth, 0.5 moon)
sm_jailshop_gravity_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
sm_jailshop_gravity_flag - Set flag for admin/vip must have to get access to gravity. No flag = is available for all players!
sm_jailshop_invisible_price - 0 - disabled, price of the 'Invisible' shop item
sm_jailshop_invisible_time - Time in seconds how long the player is invisible
sm_jailshop_invisible_flag - Set flag for admin/vip must have to get access to invisible. No flag = is available for all players!
sm_jailshop_nodamage_price - 0 - disabled, price of the 'NoDamage' shop item
sm_jailshop_nodamage_time - Time in seconds how long the player got nodamage
sm_jailshop_nodamage_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
[b]sm_jailshop_nodamage_flag - Set flag for admin/vip must have to get access to damage. No flag = is available for all players!
sm_jailshop_noclip_price - 0 - disabled, price of the 'No Clip' shop item
sm_jailshop_noclip_time - Time in seconds how long the player has noclip
sm_jailshop_noclip_flag - Set flag for admin/vip must have to get access to noclip. No flag = is available for all players!
sm_jailshop_wallhack_price - 0 - disabled, price of the 'Wallhack' shop item (only if CustomPlayerSkins is available)
sm_jailshop_wallhack_time - Time in seconds how long the player has wallhack
sm_jailshop_wallhack_access - 0 - guards only, 1 - guards & prisoner, 2 - prisoner only
sm_jailshop_wallhack_flag - Set flag for admin/vip must have to get access to wallhack. No flag = is available for all players!
sm_jailshop_bird_price - 0 - disabled, price of the 'Be a Bird' shop item
sm_jailshop_bird_mode - 1 - Chicken / 2 - Pigeon / 3 - Crow
sm_jailshop_bird_flag - Set flag for admin/vip must have to get access to bird. No flag = is available for all players!
sm_jailshop_fakeguard_price - 0 - disabled, price of the 'Fake guard model' shop item
sm_jailshop_fakeguard_model - Path to the model for fake guard.
sm_jailshop_fakeguard_flag - Set flag for admin/vip must have to get access to fake model. No flag = is available for all players!
sm_jailshop_teleportsmoke_price - 0 - disabled, price of the 'Teleport smoke' shop item
sm_jailshop_teleportsmoke_flag - Set flag for admin/vip must have to get access to teleport smoke. No flag = is available for all players!
sm_jailshop_poisonsmoke_price - 0 - disabled, price of the 'Poison smoke' shop item
sm_jailshop_poisonsmoke_flag - Set flag for admin/vip must have to get access to Poison Smoke. No flag = is available for all players!
sm_jailshop_firehe_price - 0 - disabled, price of the 'Fire Grenade' shop item
sm_jailshop_firehe_flag - Set flag for admin/vip must have to get access to firehe. No flag = is available for all players!
sm_jailshop_awp_price - 0 - disabled, price of the 'One bullet AWP' shop item
sm_jailshop_awp_flag - Set flag for admin/vip must have to get access to awp. No flag = is available for all players!
sm_jailshop_deagle_price- 0 - disabled, price of the '7 bullets Deagle' shop item
sm_jailshop_deagle_flag - Set flag for admin/vip must have to get access to deagle. No flag = is available for all players!
sm_jailshop_knife_price - 0 - disabled, price of the 'One hit knife' shop item
sm_jailshop_knife_flag - Set flag for admin/vip must have to get access to knife. No flag = is available for all players!
sm_jailshop_throw_knife_price - 0 - disabled, price of the 'Throwing one hit knife' shop item
sm_jailshop_throw_knife_count - how many knifes a prisoner can throw
sm_jailshop_throw_knife_flag - Set flag for admin/vip must have to get access to throw knife. No flag = is available for all players!
sm_jailshop_taser_price - 0 - disabled, price of the '3 bullets Taser' shop item
sm_jailshop_taser_flag - Set flag for admin/vip must have to get access to taser. No flag = is available for all players!
sm_jailshop_molotov_price - 0 - disabled, price of the 'Molotov & flashs' shop item
sm_jailshop_molotov_flag - Set flag for admin/vip must have to get access to molotov. No flag = is available for all players!
sm_jailshop_paperclip_price - 0 - disabled, price of the 'PaperClips' shop item (only if myjb is available)
sm_jailshop_paperclip_flag - "Set flag for admin/vip must have to get access to paperclip. No flag = is a
sm_jailshop_paperclip_amount - Amount of paperclips a player get (only if myjb is available)
sm_jailshop_randomtp - 0 - disable, price of the 'Random teleport' shop item
sm_jailshop_randomtp_flag - Set flag for admin/vip must have to get accesso to RandomTP. No flag = is avaible for all players!
|
Supports optional plugins:
Supports 3rd party shop/stores credit systems - use sm_jailshop_credits_system "0"
Include files needed for compile
Natives & forwards
Spoiler
myjailshop.inc
PHP Code:
/*********************************************************
* Called when a client get credits and sm_jailshop_credits_system "0"
*
* @param client The client who get the credits
* @Return The credits of the client
*********************************************************/
forward int MyJailShop_OnGetCredits(int client);
/*********************************************************
* Called when a client should remove his items
*
* @param client The client to reset
* @NoReturn
*********************************************************/
forward void MyJailShop_OnResetPlayer(int client);
/*********************************************************
* Called when a clients credits are set and sm_jailshop_credits_system "0"
*
* @param client The client who get the credits
* @param Credits Amount of credits
* @NoReturn
*********************************************************/
forward void MyJailShop_OnSetCredits(int client, int NewCreditsAmount);
/*********************************************************
* Called when a client get credits
*
* @param client The client who get the credits
* @param extraCredits Amount of credits
* @NoReturn
*********************************************************/
forward void MyJailShop_OnPlayerGetCredits(int client, int extraCredits);
/*********************************************************
* Called when a client buy an item
*
* @param client The client who bought the item
* @param item The name of the item.
* @NoReturn
*********************************************************/
forward void MyJailShop_OnPlayerBuyItem(int client, char[] item);
/*********************************************************
* Called after the shop menu is built, but before it's displayed.
* This is where you can add custom shopitem. See MyJailShop_OnShopMenuHandler
*
* @param client client Player's index.
* @param menu Menu being displayed to the client.
* @NoReturn
*********************************************************/
forward void MyJailShop_OnShopMenu(int client, Menu menu);
/*********************************************************
* Called once a shop menu item has been selected
* @param menu Menu displayed
* @param action Menu Action
* @param client client index
* @param itemNum selected item number
* @NoReturn
*********************************************************/
forward void MyJailShop_OnShopMenuHandler(Menu menu, MenuAction action, int client, int itemNum);
/*********************************************************
* Get the Credits of the client
*
* @param client The client to get the credits
* @Return The credits of the client
*********************************************************/
native int MyJailShop_GetCredits(int client);
/*********************************************************
* Set new Credits of the client
*
* @param client The client to set the credits
* @NoReturn
*********************************************************/
native void MyJailShop_SetCredits(int client, int newCredits);
/*********************************************************
* Is buytime - can player buy item or is shopping restricted
*
* @param none
* @true on buying allowed, false if not
*********************************************************/
native bool MyJailShop_IsBuyTime();
Installation
Quote:
- OPTIONAL - PLUGINS - Make sure you have the latest versions of the optional plugins
- Download the latest release
- Open gameserver folder and copy the folders addons/, cfg/, materials/, models/ & sound/ to your gameservers root csgo/ directory
- Open fastDL folder and copy the folders materials/, models/ & sound/ to your Fast Download servers csgo/ directory
- Run plugin for the first time and all necessary .cfg files will be generated
- Restart your server
- Configure all settings in cfg/MyJailShop to your needs
- OPTIONAL - MYSQL - need sm_jailshop_mysql "1"
Open your databases.cfg in your csgo/addons/sourcemod/configs directory and add the following content:
PHP Code:
"MyJailShop"
{
"driver" "mysql"
"host" "127.0.0.1" //IP to your MySQL server
"database" "your_database_name" //database name
"user" "your_database_user" //database user
"pass" "your_database_password" //database password
}
- Restart your server
- Have fun! Give feedback!
|
Changelogs:
https://github.com/shanapu/MyJailSho...r/CHANGELOG.md - master
https://github.com/shanapu/MyJailSho...v/CHANGELOG.md - dev
Known Bugs
Quote:
you found a bug? tell me please!
|
Credits:
All credits goes out to the original author Dkmuniz.
Also thanks to all sourcemod & metamod developers out there!
THANKS FOR MAKING FREE SOFTWARE!
Much Thanks:
Dkmuniz, Hexer10, Bchewy, Franc1sco, devu4, Weeeishy, Include1, KissLick, live4net, bacardi, TiBarification for testing & great ideas!
Download release pack
https://shanapu.de/MyJailShop/
Sourcecode & miscellaneous at github
https://github.com/shanapu/MyJailShop/
Report Bugs, Ideas, Requests & see todo:
https://github.com/shanapu/MyJailShop/issues
Code changes stable:
https://github.com/shanapu/MyJailShop/commits/master
Changelogs:
https://github.com/shanapu/MyJailSho...r/CHANGELOG.md
coded with free software
I would be happy and very pleased if you want to join this project as an equal collaborator.
Even if you are a beginner and willing to learn or you just want to help with translations.
you can donate if you like my work for the community...
__________________
coding & free software
Last edited by shanapu; 08-20-2018 at 17:20.
Reason: 1.4
|
|