Raised This Month: $119 Target: $400
 29% 

[ANY] Contracts


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
5366
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Players receive contract over time, wich add a bit more challenge for them.
    Old 09-26-2016 , 09:18   [ANY] Contracts
    Reply With Quote #1

    [ANY] Contracts



    A very simple plugin wich add a little bit of content for the players. They will be asked to do different tasks, such as killing other players, running around, dying and what ever you want, really.

    The plugin is fully configurable using the small keyvalue file. An exemple of a correctly configured file can be found in the INSTALLATION part of this post.

    Original idea : https://forums.alliedmods.net/showthread.php?t=288138


    Here is the no-finished list of avaible features for now :
    • Fully configurable
    • Custom contracts
    • Contracts doesn't have the same % of luck to appear
    • Ridiculus name
    • Ridiculus objective
    • Nice HUD display (for game wich have support for)
    • Using MySQLite, so you don't have to setup a database.
    • Drag'n'drop installation
    • Translation !


    1) Download the SMX file and also the config file (CFG) using the approriate link at the end of the post.
    2) Put the smx file in the PLUGINS folder.
    3) Put the CFG file in the CONFIGS folder.
    4) Put the contract.translation.txt in the TRANSLATION folder !
    5) Edit the config file if needed (using your favorite text editor). PS : See the already existing content of the file.
    6) Load the plugin by changing map, or restarting the server.

    NOTE :
    I added a new field for the contract KILL and DIE take a look :
    Code:
    	"3"
    	{
    		"Contract Name"			"Die like a true beginner"
    		"Contract Type"			"DIE"
    		"Contract Objective"	        "10"
    		"Contract Chances"		"90"
    		"Contract Reward"		"10"
    		"Contract Weapon"		"MELEE" //or could be the name of the weapon, for exemple : weapon_awp or tf_weapon_pistol or PRIMARY or SECONDARY
    	}
    Just don't put the field "Contract Weapon" or set the value as "" to disable the weapon check, see :
    Code:
    	"56"
    	{
    		"Contract Name"			"Just die already !"
    		"Contract Type"			"KILL"
    		"Contract Objective"	        "9999"
    		"Contract Chances"		"10"
    		"Contract Reward"		"800"
    		"Contract Weapon"		""
    	}

    sm_contract - Display your current contract's info.
    sm_contractlevel - Display your contracts stats.
    sm_contracttop - Display the top 7 contract's player.
    sm_contracthud - Display/Hide HUD.

    Admin commands :
    sm_givecontract - give a contract to the specified user. Require the admin generic flab (b if I remember correctly.)
    sm_resetcontract - reset ALL the infos of everyone. Without confirmation.
    sm_contract_weapon_class - display weapon class of your current weapon


    sm_contract_chance_get_contract "30"
    The % of luck to get a new contract every 5 minutes.

    sm_contract_teams "2;3"
    Team index wich can get contract. 2 = RED/T 3 = BLU/CT

    sm_database_configuration_name "storage-local"
    Configuration name in database.cfg, by default, all results are saved in the sqlite database.

    sm_contract_store_select "NONE"
    NONE=No store usage/ZEPHYRUS=use zephyrus store/SMSTORE=use sourcemod store./SMRPG=use smrpg experience system/MYJS=use MyJailShop

    sm_contract_minimum_players "2"
    How much player needed before receving an contract.

    sm_contract_interval "300"
    Time (in seconds) before giving a new contract if any.

    sm_contract_minimum_players_progress "2"
    How much player need to progress with a contract.


    Add a way to reset everything - DONE !
    Add a team restrictions system - DONE !
    Add store support - DONE !
    Add player limitation before contract - DONE !

    >> NEED HELP FOR TRANSLATIONS <<

    Thank you krikus62 for the Latvian translations and fixing my broken english !
    Thank you pubhero for the Hungarian translations and fixing things !
    Thank you lucasp6 for Portuguese translations !
    Thank you KnoXviLLe for Turkish translations !


    None found yet.



    (image stolen for the idea post, may differ from reality.)


    GITHUB repository
    Other direct download link (right click -> save as...)
    Compilled plugin (smx) : https://raw.githubusercontent.com/Ar...s/Contract.smx
    Source code (sp) : https://raw.githubusercontent.com/Ar...ng/Contract.sp
    Configuration file (cfg) : https://raw.githubusercontent.com/Ar.../contracts.cfg
    Translation file (txt) : https://raw.githubusercontent.com/Ar...ct.phrases.txt

    Enjoy !

    Logs :
    Spoiler
    __________________
    Want to show support ?
    Want to check my plugins ?
    Total donation count : 310,98 ChF.- (in 3+ years)

    Last edited by Arkarr; 01-22-2019 at 14:44.
    Arkarr is offline
    xines
    Veteran Member
    Join Date: Aug 2013
    Location: Denmark
    Old 09-26-2016 , 09:26   Re: [ANY?] Contracts
    Reply With Quote #2

    Niiice, good job!!
    __________________
    xines is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 09-26-2016 , 09:49   Re: [ANY?] Contracts
    Reply With Quote #3

    Quote:
    Originally Posted by xines View Post
    Niiice, good job!!
    Thanks
    __________________
    Want to show support ?
    Want to check my plugins ?
    Total donation count : 310,98 ChF.- (in 3+ years)
    Arkarr is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 09-26-2016 , 11:00   Re: [ANY?] Contracts
    Reply With Quote #4

    Gracias and looking good,

    Will try to upload it right now.

    -------------------

    Tested it looks wonderfull..... Upload and play.

    Is there a reset option so every contract level will be whiped

    Last edited by Happy DODs player; 09-26-2016 at 11:25.
    Happy DODs player is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 09-26-2016 , 11:59   Re: [ANY?] Contracts
    Reply With Quote #5

    Quote:
    Originally Posted by Happy DODs player View Post
    Gracias and looking good,

    Will try to upload it right now.

    -------------------

    Tested it looks wonderfull..... Upload and play.

    Is there a reset option so every contract level will be whiped
    Nope, I'll do it.

    EDIT: Done.
    __________________
    Want to show support ?
    Want to check my plugins ?
    Total donation count : 310,98 ChF.- (in 3+ years)

    Last edited by Arkarr; 09-26-2016 at 12:16.
    Arkarr is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 09-26-2016 , 13:15   Re: [ANY?] Contracts
    Reply With Quote #6

    Love it, thank you.
    Happy DODs player is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 09-26-2016 , 13:35   Re: [ANY?] Contracts
    Reply With Quote #7

    Request: Can you put in a option to : disable bots for displaying in the,. contracttop
    Happy DODs player is offline
    ElleVen
    AlliedModders Donor
    Join Date: May 2016
    Location: Italy, Milan
    Old 09-26-2016 , 14:19   Re: [ANY?] Contracts
    Reply With Quote #8

    I read the original idea, but where is the store support?

    If you want to do it put both zephs and alongub stores pls
    __________________
    ElleVen is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 09-26-2016 , 15:18   Re: [ANY?] Contracts
    Reply With Quote #9

    I'm okay with the request above. But what's alongub's store ?
    __________________
    Want to show support ?
    Want to check my plugins ?
    Total donation count : 310,98 ChF.- (in 3+ years)
    Arkarr is offline
    weeeishy
    Senior Member
    Join Date: Jul 2015
    Location: Kuwait
    Old 09-26-2016 , 16:17   Re: [ANY?] Contracts
    Reply With Quote #10

    Nice plugin! Is it possible to disable this for a specific team? Would be cool to have a cvar to control it.
    __________________
    weeeishy is offline
    Reply


    Thread Tools
    Display Modes

    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 02:39.


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