Git Product home page Git Product logo

shanapu / myjailshop Goto Github PK

View Code? Open in Web Editor NEW
13.0 8.0 9.0 2.94 MB

MyJailShop is a redux rewrite of Dkmuniz Jail Shop and provide you a high customizable shop with credits system intended for jailbreak server.

Home Page: https://forums.alliedmods.net/showthread.php?t=288712

License: GNU General Public License v3.0

SourcePawn 93.56% Batchfile 0.05% C++ 5.13% Shell 1.25%
jailbreak-server jail sourcemod sourcemod-plugins jailshop jailstore alliedmodders csgo counter-strike jail-warden

myjailshop's People

Contributors

bchewycodes avatar hexer10 avatar shanapu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

myjailshop's Issues

about sql table and infos

Hello is possible to make it work with the field accountid? to work only with steamid?
i am going to transfer steamids/credits from other plugin with yours and it will be useful if that is possible..
otherwise i will convert steamids to steamid3 to make it work

jihad bomb sound not precached

SV_StartSound: *music/MyJailbreak/boom.mp3 not precached (0)
SV_StartSound: *music/MyJailbreak/suicidebomber.mp3 not precached (0)

Logs for purchases and gifts.

Hello,

Is it possible to log these actions? It would be helpful to track down people that are farming credits and spending them quickly so no one notices or even for general information. I'm not sure if it's necessary or helpful to other people, but surely it will be great feature to have!

Thank you for your great work Shanapu!!

Tactical Shield coming back every round

Currently the tactical shield comes back to the same Ct who purchased it even if he died. When he spawns it appears on his back every round, unless its purposely made to last the whole map?

I've also noticed the shield remaining on the CT during LR which could cause an unfair advantage, possibly equipping the shield and reequipping if they win they don't die.

Credits bug

Hi,
I had a problem with your plugin "MyJailShop";
I've swapped all the things on another vps but now when for example, I gift something and restart the map it reset the credits at 6453 the ones who I had on the other vps.
(And to the players who has joined the first time, its doesn't save the credits who they've got)
Which is the file where the credits are going to be saved?

JailSet

JailSet dont load the colors and the command don't work:
[{green}JB{default}] Use: sm_jailgive <#userid|name> [amount]

Strange Reply from commands:

From JailSet:
[jail.shop] Use: sm_jailset <#userid|name> [amount]
Use: sm_jailset <#userid|name> [amount]
From JailGive:
[{green}jail.shop{default}] Use: sm_jailgive <#userid|name> [amount]
[jail.shop] Use: sm_jailgive <#userid|name> [amount]
(I get doble answers)

Incorrect rewarding

Terrorists get credits for winning the round if counter-terrorists win. Dead players get credits for winning the round, even if sm_jailshop_credits_win_alive "1"
Last dev
Last dev MyjailBreak
No error logs
SourceMod (1.9.0.6254) by AlliedModders LLC

// This file was auto-generated by AutoExecConfig read and append beta
// ConVars for plugin "myjailshop.smx"

// 0 - disabled, 1 - enable the MyJailShop SourceMod plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_enable "1"

// 1 - MyJailShop Credits, 0 - Zephrus store or 'SM Store' or FrozDark shop (need extra support plugin)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_credits_system "1"

// 0 - disabled, 1 - Save credits on player disconnect
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_credits_save "1"

// 0 - disabled, 1 - Should we use a mysql database to store credits
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_mysql "1"

// Maximum of credits to earn for a player
// -
// Default: "50000"
sm_jailshop_credits_max "50000"

// Minimum players to earn credits
// -
// Default: "4"
// Minimum: "0.000000"
sm_jailshop_minplayers "4"

// 0 - disabled, 1 - enable players get credits on warmup
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_warmupcredits "0"

// 0 - disabled, amount of credits a prisoner earns when kill a Guard
// -
// Default: "150"
// Minimum: "0.000000"
sm_jailshop_credits_kill_t "50"

// 0 - disabled, amount of credits a VIP prisoner earns when kill a Guard
// -
// Default: "200"
// Minimum: "0.000000"
sm_jailshop_credits_kill_t_vip "100"

// 0 - disabled, amount of credits a guard earns when kill a prisoner
// -
// Default: "15"
// Minimum: "0.000000"
sm_jailshop_credits_kill_ct "15"

// 0 - disabled, amount of credits a VIP guard earns when kill a prisoner
// -
// Default: "20"
// Minimum: "0.000000"
sm_jailshop_credits_kill_ct_vip "20"

// 0 - disabled, amount of credits a prisoner earns when win round
// -
// Default: "50"
// Minimum: "0.000000"
sm_jailshop_credits_win_t "25"

// 0 - disabled, amount of credits a VIP prisoner earns when win round
// -
// Default: "100"
// Minimum: "0.000000"
sm_jailshop_credits_win_t_vip "50"

// 0 - disabled, amount of credits a guard earns when win round
// -
// Default: "50"
// Minimum: "0.000000"
sm_jailshop_credits_win_ct "25"

// 0 - disabled, amount of credits a VIP guard earns when win round
// -
// Default: "100"
// Minimum: "0.000000"
sm_jailshop_credits_win_ct_vip "50"

// 0 - disabled, 1 - only alive player get credits when team win the round
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_credits_win_alive "1"

// 0 - disabled, amount of credits for reach last request as prisoner (only if hosties is available)
// -
// Default: "300"
// Minimum: "0.000000"
sm_jailshop_credits_lr "200"

// 0 - disabled, amount of credits for reach last request as prisoner (only if hosties is available)
// -
// Default: "400"
// Minimum: "0.000000"
sm_jailshop_credits_lr_vip "300"

// 0 - disabled, how many credits players receive every x seconds 'sm_jailshop_credits_time_interval'
// -
// Default: "5"
// Minimum: "0.000000"
sm_jailshop_credits_per_time "5"

// Time in seconds a player recieved credits per time
// -
// Default: "120"
// Minimum: "0.000000"
sm_jailshop_credits_per_time_interval "120"

// 0 - disabled, how many credits VIP players receive for 'sm_jailshop_credits_time_interval
// -
// Default: "10"
// Minimum: "0.000000"
sm_jailshop_credits_per_time_vip "10"

// 0 - disabled, 1 - welcome messages on spawn
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_welcome "1"

// 0 - disabled, 1 - enable chat notification everytime player get credits
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_notification "1"

// 0 - disabled, Time in seconds after roundstart shopping is allowed
// -
// Default: "180"
// Minimum: "0.000000"
sm_jailshop_buytime "180"

// 0 - disabled, 1 - only shopping until cell doors opened (only if smartjaildoors is available)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_buytime_cells "0"

// 0 - disabled, 1 - restrict shopping on Last lequest
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_buy_lr "1"

// Remove the bought perks on a last request. (bought weapons will stay)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_remove_lr "1"

// 0 - shop available for guards & prisoner, 1 - only prisoner
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_access "0"

// 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)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_myjb "1"

// 0 - disabled, 1 - When a player already got a prim/sec weapon and buy deagle or awp the current weapon disappear
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_removeweapon "1"

// 0 - disabled, 1 - enable close menu after action
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_close "1"

// Allow "MyJailShop" to be added to the server tags? So player will find servers with MyJailShop faster. it dont touch you sv_tags
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_tag "1"

// Allow MyJailShop to log purchases and gifts in logs/MyJailShop
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_log "1"

// Set your custom chat commands for shop menu(!jailshop (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
// -
// Default: "jbshop,jbstore,jailstore"
sm_jailshop_cmds_shop "jbshop,jbstore,jailstore,shop,manazin"

// Set your custom chat commands for gifting credits(!jailgift (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
// -
// Default: "jbgift,send"
sm_jailshop_cmds_gift "jbgift,send"

// Set your custom chat commands for revive(!jailrevive (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
// -
// Default: "revive,jbrevive,alive"
sm_jailshop_cmds_revive "revive,jbrevive,alive"

// Set your custom chat commands to see you credits (!jailcredits (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
// -
// Default: "points,credits"
sm_jailshop_cmds_credits "points,credits"

// Set your custom chat commands for see all online players credits(!showjailcredits (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
// -
// Default: "showpoints,allcredits,showcredits"
sm_jailshop_cmds_showcredits "showpoints,allcredits,showcredits"

// How many percent discount on a sale!
// -
// Default: "40"
// Minimum: "1.000000"
// Maximum: "100.000000"
sm_jailshop_sale_multi "40"

// 0 - disabled, 1 - enable this MyJailShop Module
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_hud_enable "1"

// 0 - show hud only to alive player, 1 - show hud to dead & alive player
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_jailshop_hud_alive "1"

// x coordinate, from 0 to 1. -1.0 is the center
// -
// Default: "0.05"
// Minimum: "-1.000000"
// Maximum: "1.000000"
sm_jailshop_hud_x "0.05"

// y coordinate, from 0 to 1. -1.0 is the center
// -
// Default: "0.65"
// Minimum: "-1.000000"
// Maximum: "1.000000"
sm_jailshop_hud_y "0.65"

// Color of sm_hud_type '1' (set R, G and B values to 255 to disable) (Rgb): x - red value
// -
// Default: "200"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_jailshop_hud_red "200"

// Color of sm_hud_type '1' (set R, G and B values to 255 to disable) (rGb): x - green value
// -
// Default: "200"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_jailshop_hud_green "200"

// Color of sm_hud_type '1' (set R, G and B values to 255 to disable) (rgB): x - blue value
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_jailshop_hud_blue "0"

// Alpha value of sm_hud_type '1' (set value to 255 to disable for transparency)
// -
// Default: "200"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_jailshop_hud_alpha "200"

Rewrite deal damage part

two erros orrurs:

L 09/24/2016 - 14:47:21: [SM] Exception reported: Array index is out of bounds
L 09/24/2016 - 14:47:21: [SM] Blaming: myjailshop.smx()
L 09/24/2016 - 14:47:21: [SM] Call stack trace:
L 09/24/2016 - 14:47:21: [SM] [1] Line 1153, C:\Users\Yousef\Desktop\SM 1.8 28\addons\sourcemod\scripting\MyJailShop.sp::Hook_OnTakeDamage()

L 09/25/2016 - 16:14:01: [SM] Exception reported: Not enough space on the stack
L 09/25/2016 - 16:14:01: [SM] Blaming: myjailshop.smx()
L 09/25/2016 - 16:14:01: [SM] Call stack trace:
L 09/25/2016 - 16:14:01: [SM] [1] Line 1170, C:\Users\Yousef\Desktop\SM 1.8 28\addons\sourcemod\scripting\MyJailShop.sp::Hook_OnTakeDamage()
L 09/25/2016 - 16:14:01: [SM] [3] AcceptEntityInput
L 09/25/2016 - 16:14:01: [SM] [4] Line 1363, C:\Users\Yousef\Desktop\SM 1.8 28\addons\sourcemod\scripting\MyJailShop.sp::DealDamage()
L 09/25/2016 - 16:14:01: [SM] [5] Line 1173, C:\Users\Yousef\Desktop\SM 1.8 28\addons\sourcemod\scripting\MyJailShop.sp::Hook_OnTakeDamage()
....

https://gist.github.com/Weeeishy/dd2ed0db24bca88e4a0213531b2b0130

MyJailShop command bugged.

I cant do /shop and in console spam this error after updating to dev verion.
Errorlog:
L 11/17/2016 - 18:51:57: [SM] Exception reported: Native is not bound
L 11/17/2016 - 18:51:57: [SM] Blaming: MyJailShop.smx
L 11/17/2016 - 18:51:57: [SM] Call stack trace:
L 11/17/2016 - 18:51:57: [SM] [1] IsEventDayRunning
L 11/17/2016 - 18:51:57: [SM] [2] Line 490, MyJailShop.sp::Command_Menu_OpenShop
My CVar:
sm_jailshop_cmds_shop "jbshop,jbstore,jailstore,shop"

EDIT: Now I saw that /jailshop (/shop not)work.

Gift yourself credits

We have a bug, that allows you to gift credits for yourself. I think it's bad idea.

Use "new hud" for cooldown

Hi,
I mean to use the new hud to display in the top left ( top right and ...) of the screen second lefted to get the immunity, invisility or noclip.
I don't have an idea of what to do if I shop 2 thinks in the same time like immunity and invisibility.

I have a bug with credits

When map change some credits are switch with another player . This happening random on 1-3 days i don`t know how ...
If player X have 300.000 credits
And player Y have 5000 credits

They switch credits on map change that is random

I save credits with mysql

Integration with froz dark shop

Hi, I have this error
L 04/23/2020 - 12:24:40: [SM] Blaming: shop.smx
L 04/23/2020 - 12:24:40: [SM] Call stack trace:
L 04/23/2020 - 12:24:40: [SM] [0] ThrowNativeError
L 04/23/2020 - 12:24:40: [SM] [1] Line 83, addons/sourcemod/scripting/shop/player_manager.sp::PlayerManager_GetClientCredits
L 04/23/2020 - 12:24:40: [SM] [3] Shop_GetClientCredits
L 04/23/2020 - 12:24:40: [SM] [4] Line 52, addons/sourcemod/scripting/myjailshop-frozdark-shop.sp::MyJailShop_OnGetCredits
L 04/23/2020 - 12:24:40: [SM] [6] Call_Finish
L 04/23/2020 - 12:24:40: [SM] [7] Line 3714, addons/sourcemod/scripting/myjailshop.sp::Forward_OnGetCredits
L 04/23/2020 - 12:24:40: [SM] [8] Line 1568, addons/sourcemod/scripting/myjailshop.sp::OnClientCookiesCached
L 04/23/2020 - 12:24:41: [SM] Exception reported: Client index 2 is not in game
L 04/23/2020 - 12:24:41: [SM] Blaming: shop.smx

Is integration with fd shop still supported?

Errors | Myjailshop frozdark shop

LOGS:
L 07/01/2017 - 16:47:01: [SM] Blaming: shop.smx
L 07/01/2017 - 16:47:01: [SM] Call stack trace:
L 07/01/2017 - 16:47:01: [SM] [0] ThrowNativeError
L 07/01/2017 - 16:47:01: [SM] [1] Line 81, shop/player_manager.sp::PlayerManager_GetClientCredits
L 07/01/2017 - 16:47:01: [SM] [3] Shop_GetClientCredits
L 07/01/2017 - 16:47:01: [SM] [4] Line 52, addons/sourcemod/scripting/myjailshop-frozdark-shop.sp::MyJailShop_OnGetCredits
L 07/01/2017 - 16:47:01: [SM] [6] Call_Finish
L 07/01/2017 - 16:47:01: [SM] [7] Line 3465, addons/sourcemod/scripting/myjailshop.sp::Forward_OnGetCredits
L 07/01/2017 - 16:47:01: [SM] [8] Line 3365, addons/sourcemod/scripting/myjailshop.sp::DB_WriteCredits
L 07/01/2017 - 16:47:01: [SM] [9] Line 1472, addons/sourcemod/scripting/myjailshop.sp::OnClientCookiesCached
L 07/01/2017 - 16:47:01: [SM] Exception reported: Client index 1 is not in game

AWP+Deagle full charged

If I have another weaps (primary or secondary) if i shop an AWP with one bullet/deagle with 1mag they get dropped on the groud and they got full charged.
ES: I've got 1deagle and 1ak, I shop AWP + DEAGLE and they get with all ammos.

Blackout.mp3 stuck

Hi,
I'm using MyJailShop and when I enter on server, downloads the files but gets stuck on blackout.mp3.
Any way to unstuck it?

two server with same database

because i have 2 jailbreak servers with store zephyrus credits system and myjailshop for shoping on different host.. i copied the files and is working but something make conflict.. if in one server have some credits if i connect to other server and disconnect the credits in db is "0" is possible somehow to make it work.. if i play on #1 server and disconnect when i connect to other server #2 to have the same ?

Noclip stuck

If player uses noclip, and them he stucks in wall, could you do something with this?
Propose is to teleport player to free location or to someone of player.

Disable shop on LR

There is a way to disable shop when there is the LR(LastRequest form SM_Hosties?), beacause i don't want the player use gravity on gun toss etc...
For both(Ts and CTs) when there is the LR time.
Thanks

Jihad item

20:42 - JacobThePigeon: Someone suggested to me today to add Jihad into the shop, I told them I'd ask you.

Shop Limit

Is possibile to add a limit to use 150hp item beacause some player arrive to get 600+ hp...
Thanks

Bird bug

Bug with chicken. The next round, the camera does not return the previous value, and the flight is not removed.

SetPlayerAmmo (deagle) issue

Whenever I buy deagle, it's fully charged.
This issue appears since I've uploaded the latest myjailshop stable built.
I'm using: the latest sourcemod 1.9, the latest metamod 1.10 and also the latest stable MyJailbreak from 09/01/19.

This error code appears whenever someone buy deagle:

[SM] Exception reported: Property "m_iPrimaryReserveAmmoCount" not found (entity 180/weapon_deagle) [SM] Blaming: myjailshop.smx
[SM] Call stack trace:
[SM] [0] SetEntProp
[SM] [1] Line 248, /home/travis/build/shanapu/MyJailShop/addons/sourcemod/scripting/include/mystocks.inc::SetPlayerAmmo
[SM] [2] Line 2477, addons/sourcemod/scripting/myjailshop.sp::Item_Deagle
[SM] [3] Line 2217, addons/sourcemod/scripting/myjailshop.sp::Handler_Menu_OpenShop

Thanks for help.

terrorist shop doesnt work

SourceMod Version Information:
SourceMod Version: 1.8.0.5954
version metamod
Protocol version 13563 [418/418]
Exe version 1.35.6.3 (csgo)
Exe build: 10:31:20 Dec 13 2016 (6605) (730)

i use the latest stable 1.20 version
but the terrorist shop doesnt work ct and other thing is ok.. no error message..

Add limit per round

add a limit amount of uses or amount of people can use the shop per round so its not so op. I cant find any cvar that can change that

Cant compile zephyrus store

//// myjailshop-zephyrus-store.sp
//
// C:\Users\Maciej\Desktop\kompiler\addons\sourcemod\scripting\include\store.inc(24) : error 050: constant 'szName' already defined
// C:\Users\Maciej\Desktop\kompiler\addons\sourcemod\scripting\include\store.inc(55) : error 050: constant 'iId' already defined
// C:\Users\Macie

Discount/Sale shop items

Idea by Murr
I really like it, but not sure how to make it.
Discount on all items or just an single item or maybe a group of items?
How to start the discount? - random, every x rounds, per admin command or at a special time on the day?
How long the discount will go? - a round, a map or x minutes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.