Raised This Month: $51 Target: $400
 12% 

[CS:S/CSGO] Jail Shop !


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dkmuniz
Senior Member
Join Date: Jun 2013
Plugin ID:
4344
Plugin Version:
v7
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    For buy items in jail server !
    Old 09-09-2014 , 23:05   [CS:S/CSGO] Jail Shop !
    Reply With Quote #1

    Description:

    You can buy items in jail server with a credits system. Kill players for win credits.


    Requirements:
    SM HOSTIES
    Smart Jail Doors
    SDK Hooks
    SMLIB - just for compile

    Cvars and Prices:
    Code:
    Cvars
    shop_credits_maximum 50000 //Maxim of credits for player
    shop_credits_per_kill_t 3 //Amount of credits for kill ( prisioner )
    shop_credits_per_kill_ct 1 //Amount of credits for kill ( guard )
    shop_credits_per_kill_lr 300 //Amount of credits for the last player
    shop_spawnmessages 1 //Messages on spawn - ( 1 enable, 0 disable)
    shop_credits_save 1 //Save or not credits on player disconnect - ( 1 enable, 0 disable)
    shop_terrorist_only 1 //Menu for only prisioners - ( 1 enable, 0 disable)
    shop_warmupcredits 0/1 - disable or enable credits on warmup
    shop_revive_on 1/0 - disable or enable item !revive
    shop_minplayers 4 - minimum players to get credits for kill or LR
    shop_credits_per_kill_t_vip - Amount of credits for kill ( prisioner ) for VIP (flag a)
    shop_credits_per_kill_ct_vip - Amount of credits for kill ( guard ) for VIP (flag a)
    shop_credits_per_kill_lr_vip - Amount of credits for the last player for VIP (flag a)
    shop_credits_per_kedavra - Amount of credits for one right avada kedavra
    
    	
    	
    Prices of Terrorist Shop
    price_01 7000 Price of item (invisible)
    price_02 2000 Price of item (awp)
    price_03 7000 Price of item (immortal)
    price_04 800 Price of item (open jails)
    price_05 4000 Price of item (more fast)
    price_06 3500 Price of item (hp)
    price_07 2000 Price of item (eagle)
    price_08 1500 Price of item (super knife)
    price_09 50 Price of item (healing)
    price_10 650 Price of item (molotov)
    price_11 7000 Price of item (skin)
    price_12 1000 Price of item (poison smoke)
    price_14 8000 Price of item (smoke teleporter)
    price_15 8000 Price of item (respawn)
    price_16 2000 Price of item (he with fire)
    price_17 2000 Price of item (bhop)
    price_18 2000 Price of item (low gravity)
    price_19 1000 Price of item (taser with 3 bullets)
    price_20 10000 Price of item (Kedavra)
    
    Prices of CtSHOP
    price_21 5000 - Price of item (VestHelm)
    price_22 1500 - Price of item (Healing)
    price_23 12000 - Price of item (InifinteAmmo)
    price_24 8000 - Price of item (KitGrenade)
    
    


    Default Commands:

    sm_shop - open the shopmenu
    sm_ctshop - open the ct shop
    sm_credits - view your current credits
    sm_revive - you can revive with credits
    sm_give <#userid|name> [amount] - admin command (ROOT) for set credits in players.
    sm_set <#userid|name> [amount] - admin command (ROOT) for set credits in players, but instead of replacing the current credits, they are summed.
    sm_gift <#userid|name> [amount] - player command for gift your credits for another player!
    sm_showcredits - admin command ( ROOT) for view all players credits.
    sm_removeall - admin command ( ROOT) for delete all player credits in game.

    Items list:

    Be Invisible for 10 seconds
    Have AWP with one bullet
    Be Immortal for 20 seconds
    Open the Jails
    Be Fast + Vampire
    Have +150 HP and HELM
    Have Eagle with seven bullets
    Super knife ( kill the opponent with one stab )
    Healing
    Buy a molotov + 2 flashbangs( CSGO ) OR Buy a 2 flashbangs ( CSS )
    Have guard skin
    Buy a poison smoke
    Become a Smoke teleporter
    Respawn ( You have that use !revive command )
    Buy a he that burn the opponent
    Have BunnyHop
    Have Low Gravity
    Have Zeus (TASER) with 3 bullets
    Have POWER of AVADA KEDAVRA

    CT SHOP:

    VestHelm
    Infinite Ammo
    Healing
    Kit Grenade


    Configuration:
    cfg/sourcemod/sm_shopjail.cfg
    For Kit of Grenades, put in server.cfg
    sm_cvar ammo_grenade_limit_flashbang 2
    sm_cvar ammo_grenade_limit_total 5




    THIS REQUIRE HOSTIES !!


    Credits:

    Franc1sco Franug for original idea, live4net for suggestions and Equiment for plugin of Avada Kedavra!
    Attached Files
    File Type: zip Jail SHOP.zip (79.6 KB, 2465 views)

    Last edited by Dkmuniz; 01-08-2016 at 04:43. Reason: New version
    Dkmuniz is offline
    live4net
    AlliedModders Donor
    Join Date: Jul 2014
    Old 10-17-2014 , 06:45   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #2

    Nice work!

    I found some bugs on CS:GO:
    1. Guard Skin crash server.
    2. If you buy desert twice, you got 42 ammo.
    3. Immortality never ends.

    Can you add MySQL support?
    live4net is offline
    Dkmuniz
    Senior Member
    Join Date: Jun 2013
    Old 10-18-2014 , 10:17   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #3

    Quote:
    Originally Posted by live4net View Post
    Nice work!

    I found some bugs on CS:GO:
    1. Guard Skin crash server.
    2. If you buy desert twice, you got 42 ammo.
    3. Immortality never ends.

    Can you add MySQL support?
    Fixed all bugs: Awp and Eagle, now u can buy just one time per round!

    More bugs u can tell me.

    Sorry, no MySQL support!
    PS: If you buy a Awp or Eagle in buyzone, the csgo automatic give ammo ;), then not buy in buyzone!

    Last edited by Dkmuniz; 10-18-2014 at 10:18.
    Dkmuniz is offline
    live4net
    AlliedModders Donor
    Join Date: Jul 2014
    Old 10-18-2014 , 12:32   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #4

    More bugs i found:

    1. Errors in console:
    Quote:
    L 10/18/2014 - 17:09:25: [SM] Native "SetEntPropFloat" reported: Property "m_flLaggedMovementValue" not found (entity 0/worldspawn)
    L 10/18/2014 - 17:09:25: [SM] Displaying call stack trace for plugin "jail_shop.smx":
    L 10/18/2014 - 17:09:25: [SM] [0] Line 1459, jail_shop.sp::Normalizar()
    L 10/18/2014 - 17:09:25: [SM] [1] Line 536, jail_shop.sp::Event_OnRoundEnd()
    L 10/18/2014 - 17:09:25: [SM] Native "PrintToChat" reported: Client 31 is not in game
    L 10/18/2014 - 17:09:25: [SM] Displaying call stack trace for plugin "jail_shop.smx":
    L 10/18/2014 - 17:09:25: [SM] [0] Line 212, jail_shop.sp::MensajesSpawn()
    2. When i'm die as a bird and type !revive, server crash.

    3. I translate phrases.txt file and got errors like:
    Quote:
    L 10/18/2014 - 18:26:20: [SM] Invalid token ' ' in #format property on line 234.
    4. CT can type !revive.

    5. Put "Seus creditos" in phrases.txt file.

    Last edited by live4net; 10-18-2014 at 13:52.
    live4net is offline
    Dkmuniz
    Senior Member
    Join Date: Jun 2013
    Old 10-18-2014 , 14:30   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #5

    Quote:
    Originally Posted by live4net View Post
    More bugs i found:

    1. Errors in console:
    2. When i'm die as a bird and type !revive, server crash.

    3. I translate phrases.txt file and got errors like:


    4. CT can type !revive.

    5. Put "Seus creditos" in phrases.txt file.

    1 - My console dont return this erros, but i think that i fix it.

    2 - Fixed

    3 - Can talk more ? I dont have this error

    4 - ADD for according cvar shop_terrorist_only, if 0 t and ct can use !revive, if 1 only t can use!

    5 - ??? Not exist "Seus creditos" in phrases file !

    Last edited by Dkmuniz; 10-18-2014 at 14:38.
    Dkmuniz is offline
    live4net
    AlliedModders Donor
    Join Date: Jul 2014
    Old 10-18-2014 , 16:24   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #6

    3. On you oryginal phrasaes.txt there is not errors, but when i translate
    from
    "en" "Yours credits: {1} (You do not have enough credits to buy this item! You need {2})"
    to
    "en" "Twoje papierosy: {1} Nie masz wystarczajaco papierosow aby to kupic! Potrzebujesz {2}"

    i receive that error and i don't know why.

    4. I have shop_terrorist_only "1"
    !shop works only in terrorist, but !revive work's also on CT side.

    5. Yes, almoust everything communicates are in phrases.txt, but that is only in *.sp file, and plubin must be recompiled to translate it.

    PrintToChat(attacker, "\x04[SKLEP] \x05Seus creditos: %i (+%i)", g_iCreditos[attacker], GetConVarInt(cvarCreditosKill_CT));

    I'll test new version, and write if i found new bugs.

    Maybe you add smth like sm_showcredits for admins, to show to admin credits every player whitch is connected?

    Last edited by live4net; 10-18-2014 at 16:28.
    live4net is offline
    Dkmuniz
    Senior Member
    Join Date: Jun 2013
    Old 10-18-2014 , 16:53   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #7

    3. Upload your translation file for me please !

    4. Works nice for me, update for the new version, Ct only can revive if shop_terrorist_only is "0" !!

    5. I'll put in translation file , now i understand , sorry for english
    Dkmuniz is offline
    live4net
    AlliedModders Donor
    Join Date: Jul 2014
    Old 10-18-2014 , 18:39   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #8

    My translate in attachment, but i translated credits like papierosy (eng. cigarettes) to save jail climate/enviroinment.
    Attached Files
    File Type: txt jail_shop.phrases.txt (6.8 KB, 771 views)

    Last edited by live4net; 10-18-2014 at 18:39.
    live4net is offline
    Dkmuniz
    Senior Member
    Join Date: Jun 2013
    Old 10-18-2014 , 19:49   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #9

    Quote:
    Originally Posted by live4net View Post
    My translate in attachment, but i translated credits like papierosy (eng. cigarettes) to save jail climate/enviroinment.
    Dude, i translate my file to Portuguese and works fine !, try look if u dont close an quote ( " ) or key ( } )

    New Version update with translation for "Seus creditos" in player death.


    PS: Try download again the new translation and put line for line in your language .
    Dkmuniz is offline
    live4net
    AlliedModders Donor
    Join Date: Jul 2014
    Old 10-19-2014 , 04:40   Re: [CS:S/CSGO] Jail Shop !
    Reply With Quote #10

    1. I fix errors:
    Quote:
    L 10/19/2014 - 09:15:25: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 10/19/2014 - 09:15:25: [SM] Native "PrintToChat" reported: Language phrase "Item reviver" not found
    L 10/19/2014 - 09:15:25: [SM] Displaying call stack trace for plugin "jail_shop.smx":
    L 10/19/2014 - 09:15:25: [SM] [0] Line 355, jail_shop.sp::Reviver()
    L 10/19/2014 - 0967: [SM] Native "PrintToChat" reported: Client 4 is not in game
    L 10/19/2014 - 0967: [SM] Displaying call stack trace for plugin "jail_shop.smx":
    L 10/19/2014 - 0967: [SM] [0] Line 212, jail_shop.sp::MensajesSpawn()
    2. I add sm_showcredits, it's admin command which shows connected players credits.


    I found another BUG:
    If smbd buy bird, server crashed at end of the round. I not receive any errors in console when server crashed.

    PS. I fix translation problem:
    I edit my translate file
    from
    "#format" "{1:d}, {2:d}"
    to
    "#format" "{1:d},{2:d}"
    (delete space) and now everything is fine, i don't have any errors in logs.
    Attached Files
    File Type: sp Get Plugin or Get Source (jail_shop.sp - 776 views - 42.3 KB)

    Last edited by live4net; 10-19-2014 at 05:41.
    live4net is offline
    Reply



    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 19:46.


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