AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Contracts (https://forums.alliedmods.net/showthread.php?t=288296)

Arkarr 09-26-2016 09:18

[ANY] Contracts
 
48 Attachment(s)
[ANY] Contracts


https://puu.sh/rooCC/910797c17e.png
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

https://puu.sh/rooCG/944b44999e.png
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) :3
  • Using MySQLite, so you don't have to setup a database.
  • Drag'n'drop installation
  • Translation !

https://puu.sh/rooCK/066043be6c.png
0) You need sourcemod version >= 1.10 !!
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"                ""
        }

https://puu.sh/rooCt/e894d3eab4.png
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

https://puu.sh/rooAd/55c1dba974.png
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.

https://puu.sh/rooCU/f0cc0f7c77.png
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 :3 !
Thank you pubhero for the Hungarian translations and fixing things :3 !
Thank you lucasp6 for Portuguese translations :3 !
Thank you KnoXviLLe for Turkish translations :3 !

https://puu.sh/rooCk/5e5ba6f955.png
None found yet.

https://puu.sh/rooCN/00e99ea989.png
http://i68.tinypic.com/anh8gh.jpg
(image stolen for the idea post, may differ from reality.)

http://puu.sh/rNitX/6e8e51b58d.png
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

xines 09-26-2016 09:26

Re: [ANY?] Contracts
 
Niiice, good job!! :up:

Arkarr 09-26-2016 09:49

Re: [ANY?] Contracts
 
Quote:

Originally Posted by xines (Post 2457186)
Niiice, good job!! :up:

Thanks :3

Happy DODs player 09-26-2016 11:00

Re: [ANY?] Contracts
 
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

Arkarr 09-26-2016 11:59

Re: [ANY?] Contracts
 
Quote:

Originally Posted by Happy DODs player (Post 2457211)
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.

Happy DODs player 09-26-2016 13:15

Re: [ANY?] Contracts
 
Love it, thank you.

Happy DODs player 09-26-2016 13:35

Re: [ANY?] Contracts
 
Request: Can you put in a option to : disable bots for displaying in the,. contracttop

ElleVen 09-26-2016 14:19

Re: [ANY?] Contracts
 
I read the original idea, but where is the store support?

If you want to do it put both zephs and alongub stores pls

Arkarr 09-26-2016 15:18

Re: [ANY?] Contracts
 
I'm okay with the request above. But what's alongub's store ?

weeeishy 09-26-2016 16:17

Re: [ANY?] Contracts
 
Nice plugin! Is it possible to disable this for a specific team? Would be cool to have a cvar to control it.


All times are GMT -4. The time now is 18:53.

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