Tasks
38 Attachment(s)
Tasks 1.02 (with extensions)
Description You can define tasks for players and award for making them. Now only for kill enemies or survive rounds. It could be prize for using different weapons, not typical kill (fe. Headshots with nade), for player who good evade death or whatever you want. Now you can define Multi-Tasks. Default task can be one activity, but if you change constant MAXEXT (read lower about constants) from 0 to 1,2,3....you can add some extenstions. Thanks -Texnux for suggestions - Slim-T for translation [sv] - helderpostiga1 for translation [pb] New feature: If player make task, next award will be more than standard. n - count of made tasks NEXT_AWARD = STANDARD_AWARD + n*STANDARD_AWARD*0.25 Adding task: Create config with list of task define by command add_task (read lower about it), tasks.cfg is default (no required!), but not only this file can contain it. You can use other plugins (fe. http://forums.alliedmods.net/showthread.php?p=379510) to add different tasks on different maps. Installation
Using: !IMPORTANT: this command can be used only on few seconds after load map (in start config only) because changing rules during game is bad :down:Client Commands
tasks.sma Code:
... Code:
add_task 500 kill 3 dm 1 http://forums.alliedmods.net/attachm...6&d=1215376288 Sounds Any sounds of plugins are optional, if you dont want any of them simply dont put it on your server (without any problems)Languages
|
Re: Tasks
Please upload the file to this post. It makes it easier to update.
Also, it is best to use pcvars all the time. Even if the cvar is already registered, you can use get_cvar_pointer("cvar") to generate the pcvar part of it. |
Re: Tasks
Quote:
I fixed few bugs and uploaded correct sounds. //Edit @down I had that earlier, but changed. Repaired. |
Re: Tasks
Get the pointer during plugin_init. There is no need to keep getting them when you can do it just once.
|
Re: Tasks
Exelent. Very good Idea.
|
Re: Tasks
Pretty interresting plugin you got there!
Great with awards for killing people with a special weapon! What would make this plugin outstanding would be features like this: - Random award for completing a task - More awards - armor/godmode/noclip and the like - More tasks - Special rewards for completing multiple tasks - Sound effects to some task, example when you are granted godmode it emits one sound - Texnux |
Re: Tasks
Thanks.
Idea is based on Condition Zero Single Player game. I will add random award option when got more types of award :). Thx for suggestion. Sounds already exists for complete task and use medkit. Later add more on new events. I`m thinking about Multi-task. I only need time to write it. More tasks...At start write plugin I had award for doing scenario task, but I was working only on de_ maps (planting, defusing etc), so I deleted it. Maybe later I add more task, now I focus on awards. If somebody got any idea please post it there. |
Re: Tasks
Updated.
//Edit And again. //Edit2 Fixed two little bugs. Update No more two ways to catch death event. Now it work only with register_event() - (client_death deleted). |
Re: Tasks
Scherzo fakemeta! Don't use FUN :P
|
Re: Tasks
Oh, so I cant use it? I found on function list 'set_user_health' and added medkits :D
Fixed. Now it is using fakemeta. |
All times are GMT -4. The time now is 20:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.