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
3) Put the CFG file in the CONFIGS
4) Put the contract.translation.txt in the TRANSLATION
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.
I added a new field for the contract KILL
take a look :
"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 :
"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
The % of luck to get a new contract every 5 minutes.
Team index wich can get contract. 2 = RED/T 3 = BLU/CT
Configuration name in database.cfg, by default, all results are saved in the sqlite database.
NONE=No store usage/ZEPHYRUS=use zephyrus store/SMSTORE=use sourcemod store./SMRPG=use smrpg experience system/MYJS=use MyJailShop
How much player needed before receving an contract.
Time (in seconds) before giving a new contract if any.
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.)
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