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
tasks.amxx put into plugins folder
add tasks.amxx into configs/plugins.ini
tasks.txt put into amxmodx/data/lang folder
if you want put sounds into sound/tasks folder
create or download my config and put as amdmodx/configs/tasks.cfg file or other execute on start server/load map and write there lines with tasks
Required modules
<cstrike>
<csx>
<fakemeta>
<engine>
Server Commands/Cvars
amx_taskaward 0|1|2
0 - standard (money on de_, cs_ and as_ maps; alternative on other)
1 - money
2 - alternative
amx_altaward <num> //work only if amx_taskaward is not 1
0 - random
1 - medkit
2 - increase max health
3 - chance on Berserker Mode
more speed
extra hp
extra knife damage
if attacker is next to (< 2m) get slap
Later I will attach video from launch berserker mode
amx_taskmedkithp NUM
one medkit restore NUM hp
add_task args...
adding new task
add_extend2task args...
adding extension for last added task, it accept MAXEXT(look at constants list, lower) extensions
Using:
Quote:
add_task Award What How_many_times [Weapon] [With_hs]
Quote:
add_extend2task What How_many_times [Weapon] [With_hs]
Award - AWARD$ or AWARD/100 medkits, max HP or chance on Berserker Mode
What - KILL or SURVIVE
How_many_times - how many times repeat activity
Weapon* (optional) - weapon with which player kill enemy
Weapon can be any of CS . You can see list on http://www.amxmodx.org/funcwiki.php?...d=4#const_cswp without CSW_ prefix, you cant use flashbang, smoke grenade ,c4 and kevlars...i hope that dont need give reason . If kill can be done with any weapon write dm (doesnt matter) as 4th argument
With_hs* (optional) - if 1 victim must be killed with headshot
* only for KILL task
examples of single tasks:
Task:kill 2 enemies with usp for 300$ or 3 alternative award
Quote:
add_task 300 kill 2 usp 0
Task:survive 3 rounds for 500$ or 5 alternative award
Quote:
add_task 500 survive 3
Task:kill 7 enemies with Kalashnikov with headshot for 1000$ or 10 alternative award
Quote:
add_task 1000 kill 7 ak47 1
exaxples of tasks with extensions: (for this examples MAXEXT must be '1')
Task: survive 5 round AND kill 6 enemies for 800$ or 8 alternative award
Quote:
add_task 800 survive 5
add_extend2task kill 6
Task: kill 3 enemies with usp with headshot AND kill 6 enemies with m4a1 for 1000$ or 10 alternative award
Quote:
add_task 1000 kill 3 usp
add_extend2task kill 6 m4a1
Task: survive 5 round for 800$ or 8 alternative award
(bad order of commands)
Quote:
add_extend2task kill 6
add_task 800 survive 5
!IMPORTANT:
this command can be used only on few seconds after load map (in start config only) because changing rules during game is bad
Client Commands
tasks - display list of tasks
medichelp - display very short manual about using medkits
medic - use medkits
Presentation
tasks.sma
Code:
...
#define MAXEXT 2
...
tasks.cfg
Code:
add_task 500 kill 3 dm 1
add_task 400 kill 2 mac10 1
add_extend2task kill 2 tmp
add_task 400 kill 3 MP5NAVY 1
add_extend2task kill 4 m4a1
add_extend2task kill 4 famas 1
add_task 300 kill 2 scout
add_task 800 survive 5
add_extend2task kill 6
Effect:
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
EN
PL
SV
PB
Constants
( 14 ) #define MAXPLAYERS 32
if your server have less change it and recompile
( 16 ) #define MAXTASKC 70
max count of tasks, the same effect as MAXPLAYERS - less memory using
( 17 ) #define MAXEXT 0
define how much extension are accept
( 19 ) #define messInterval 80.0
interval info messages (in seconds)
Change Log
1.0 - Base
1.01 - Fixed few bugs
1.02 - Clean code, repair base, two new awards
Note: In code i write author 'R3X' because it is my real nick, 'Scherzo' i was using on forums when i registered (long ago).
plugin
Tasks
Jump to
- Inregistreaza-te pe Zonek Telecom ca sa vezi toate Subiectele
- -->>Regulile Forumului & Descriere<<--
- ↳ Regulament Forum
- ↳ Prezentare
- ↳ Cereri Parteneriate
- ↳ Intri si tu in reteaua zonek??
- ↳ Sugestiile voastre
- ↳ Raportare bug-uri/probleme forum
- -->>Mica Publicitate & Reclama<<--
- ↳ Reclama diverse siteuri & servere de Counter-Strike
- ↳ Vand
- ↳ Cumpar
- -->>Servere Comunitare NON-STOP<<--
- ↳ Discord Server Zonek Telecom
- ↳ GO.ZONEK.RO
- ↳ ARENA.ZONEK.RO
- ↳ AWP.ZONEK.RO
- ↳ Bucuresti Create Server
- ↳ Evidenta redirect
- ↳ Clan TAG
- zonek.ro - Counter Strike Global Offensive
- ↳ SourceMod Plugins
- ↳ Admin Commands
- ↳ Fun Stuff
- ↳ Gameplay
- ↳ General Purpose
- ↳ Server Management
- ↳ Statistical
- ↳ Technical/Development
- ↳ Tutoriale
- ↳ Probleme la servere si Jocul Counter-Strike: Global Offensive
- -->>Jocuri & Resurse Counter Strike<<--
- ↳ Tutoriale cs 1.6- Server
- ↳ Tutoriale Moduri Counter - Strike [NOU]
- ↳ Tutoriale cs - Install Counter-Strike & HLDS
- ↳ Scripting
- ↳ Mapping / Harti
- ↳ Cereri Tutoriale
- ↳ Download pluginuri
- ↳ Discutii legate de plugin-uri - Cereri Plugin-uri
- ↳ Download zone
- ↳ AdminMod
- ↳ AmxModX
- ↳ Admin Commands
- ↳ General Purpose
- ↳ Statistical
- ↳ Gameplay
- ↳ Event Related
- ↳ Server Management
- ↳ Fun Stuff
- ↳ Technical/Development
- ↳ AmxMod
- ↳ Addons-uri Counter Strike
- ↳ Addonsuri AmxModX
- ↳ Addonsuri AdminMod
- ↳ Addonsuri AmxMod
- ↳ Cereri addonsuri
- ↳ Probleme tehnice
- ↳ HLDS
- ↳ Client 1.6
- ↳ Alte jocuri
- -->>Diverse<<--
- ↳ Discutii diverse
- ↳ Realitatea Baptista Castellon
- ↳ Arta
- ↳ Studentie
- ↳ Auto / Moto
- ↳ Fashion
- ↳ Sanatate
- -->> San Andreas Multi Player <<--
- ↳ Discutii Scripting
- ↳ Probleme GodFather
- ↳ Tutoriale
- ↳ Cerere Tutoriale
- ↳ Salonul Scripturilor
- ↳ Plugins
- ↳ Maps
- ↳ Gamemode
- ↳ FilterScript
- ↳ News Development
- ↳ Ajutor Servere
- -->> Photoshop <<--
- ↳ Photoshop
- ↳ Creatii
- ↳ Gifts
- ↳ Graphic Battle
- ↳ Tutoriale
- ↳ Competitii: - SOTW
- ↳ Resurse
- ↳ Ripperi
- ↳ Cereri Photoshop
- ↳ Da LIKE pe FaceBook si castigi 10 euro saptamanal!!
- -->>Filme & Muzica<<--
- ↳ Filme
- ↳ Muzica
- -->>Minunile Lumii Antince<<--
- ↳ Cele 7 Minuni ale Lumii
- ↳ Minuni uitate ale Lumii Antice
- -->>LOVE & SEX<<--
- ↳ Love & Sex
- ↳ Contraceptia
- ↳ Dragostea
- -->>Hubul dc.zonek.ro al serverelor de Counter-Strike<<--
- ↳ Totul despre hubul dc.zonek.ro
- -->>Culturi si Mistere<<--
- ↳ Culturi ascunse, mistere si fapte inexplicabile
- ↳ Magie
- ↳ Lumea Viselor
- -->>|Messenger| & Curiozitatii<<--
- ↳ <|Mesaje tampite care se dau pe mess|>
- ↳ Intrebari fara raspuns
- ↳ Stiati ca ?
- ↳ Pentru cei nemultumiti
- Manage Holidays/Sarbatori si Zile Onomastice
- ↳ Manage Holidays / Sarbatori si Zile Onomastice
- Recycle Bin
- ↳ Recycle Bin
- ↳ HaoS.ZoneK.Ro [ Public Server ]
- ↳ Regulament
- ↳ Anunturi
- ↳ Cafenea Admini
- ↳ Staff
- ↳ Cerere Admin
- ↳ Cerere Slot
- ↳ Cerere UnBan
- ↳ Reclamatie Admini
- ↳ Lista Banuri
- ↳ Redirecte
- ↳ djs.zonek.ro
- ↳ Regulament
- ↳ Cereri admin / slot pe djs.zonek.ro
- ↳ Cerere UnBan
- ↳ Reclamatii admini / playeri
- ↳ Campionat 2 vs 2
- ↳ Discutii Libere
- ↳ Clanu Dj's
- ↳ Ballas
- ↳ Nortenos
- ↳ Surenos
- ↳ Taxele serverului
- ↳ Vanzari - Cumparari
- ↳ Afaceri
- ↳ Servicii
- ↳ Case
- ↳ Politia Romana
- ↳ Discutii generale despre factiuni
- ↳ Pompieri si Medici
- ↳ Serviciul Roman de informatii
- ↳ Armata Romana
- ↳ Clanul Frusin
- ↳ Clanul Racean
- ↳ Guvernator San Andreas
- ↳ Asasini Platiti
- ↳ Reporteri ProTV
- ↳ Transport Company
- ↳ Instructori
- ↳ Clanul Camataru
- ↳ Job-uri secundare
- ↳ Tow Car Company
- ↳ Tutoriale GTA SA:MP
- ↳ freerunners.zonek.ro
- ↳ Admins only
- ↳ Regulament
- ↳ Anunturi
- ↳ Donatii
- ↳ Echipa nord
- ↳ Cereri admin/slot
- ↳ Cereri unban
- ↳ De ce am dat ban
- ↳ Cine face abuz de admin
- ↳ Discutii libere
- ↳ Evidenta redirecte
- ↳ Ghenaaaaaa.....!!!
- ↳ Grove Street
- ↳ Ballas Family
- ↳ Mayor
- ↳ The Triads
- ↳ The Mafia
- ↳ Varios Los Aztecas
- ↳ License Faction
- ↳ Los Santos Vagos
- ↳ News Reporter
- ↳ Taxi Company
- ↳ National Guard
- ↳ Police Departament
- ↳ Federal Bureau of Investigaton
- ↳ Medics
- ↳ Hitman Agency
- ↳ furien.zonek.ro
- ↳ Regulament Server
- ↳ Anunturi
- ↳ Cerere Admin / Slot
- ↳ Cerere UnBan
- ↳ Cerere Ban
- ↳ Reclamatii
- ↳ Echipa furien.zonek.ro
- ↳ Mariri / degradari
- ↳ Redirecte
- ↳ Discutii Generale
- ↳ Download Redirecte
- ↳ FAN.ZONEK.RO # Fan Curier Server
- ↳ intrudersWOW - www.zonek.ro
- ↳ Announcements / Server info
- ↳ International Zone
- ↳ Romanian
- ↳ German
- ↳ English
- ↳ Requests
- ↳ Ban \ Mute Request
- ↳ Unban / Unmute requests
- ↳ Bug Report
- ↳ Items
- ↳ Other
- ↳ Fixed bugs
- ↳ General Discussion
- ↳ Ze.Zonek.Ro # Intruders Zombie
- ↳ Stream name: ...::: CooLFM :::... - Cel mai tare Radio
- ↳ I'm in love!
- ↳ Request
- ↳ Events - Radio CooLFM
- ↳ Cautam Dj`eitze si DJ-eii
- ↳ Personal Top Ten (?)
- ↳ Zonek SA:MP Official Server
- ↳ Informatii
- ↳ Sugestii
- ↳ Update's
- ↳ Factiuni
- ↳ Police Depatament
- ↳ Federal Bureau of Investigations
- ↳ National Guard
- ↳ Fireman/Paramedics
- ↳ The Mafia
- ↳ The Triads
- ↳ The Mayor
- ↳ Hitman Agency
- ↳ News Reporter
- ↳ Taxi Company
- ↳ License Faction
- ↳ Los Santos Vagos
- ↳ Varios Los Aztecas
- ↳ Ballas
- ↳ Grove Street
- ↳ NFS Club
- ↳ NRG Club
- ↳ Plangeri
- ↳ Admin's Zone
- ↳ Diverse
- ↳ Buguri
- ↳ Statistici WEB
- ↳ LIGHT.ZONEK.RO | Anti-Cheat | Skins |
- ↳ DM.ZONEK.RO
- ↳ WAR3.ZONEK.RO
- ↳ ELITE.ZONEK.RO