Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Score Rewards ( v1.96beta )

by Firestorm · 2006-07-09 · 17 replies · 14496 views · 337 downloads

Read the thread (18 posts)

From the first post

// This plugin will give special rewards for flagpoints
rn// and objectives.
rn//
rn//
rn// REWARDS:
rn// ========
rn//
rn// 1.) Health refillment
rn// 2.) X ammo for weapon currently in hand
rn// 3.) FG42 with 999shots (any map, any team)
rn// 4.) X seconds godmode while glowing in team's color
rn// 5.) X ammo, +X kills, -X deaths
rn// 6.) X seconds invisibile/silent
rn//
rn// You can sort the row in which they are given yourself
rn// and you can even completely disable rewards that you don't
rn// want to use.
rn//
rn// Plugin detects if a reward was reached at the end of a round
rn// and gives the award after respawn, so it's not lost.
rn
rn
// CVARs (for amxx.cfg):rn// =====================rn//rn// dod_sr_enabled <1/0> = enable/disable DoD ScoreRewardsrn//rn// dod_sr_hudannounce <1/0> = sets way rewards are announcedrn// 1 by hudmessagern// 2 by chatmessagern//rn// dod_sr_cyclerewards <1/0> = enable/disable continouslyrn// starting again after gettingrn// the last rewardrn//rn// dod_sr_lastreward = define # of last reward in the row,rn// after this reward the scorecount isrn// reset if you're using the cycle featurern//rn// dod_sr_givebullets = amount of bullets to givern// (Reward #2 & #5)rn//rn// dod_sr_giveshells = amount of shells to givern// (Reward #2 & #5)rn//rn// dod_sr_givenades = amount of nades to givern// (Reward #2 & #5)rn//rn// dod_sr_godtime

rn
rn
// CHANGELOG:rn// ==========rn//rn// - 30.09.2004 Version 1.0alpharn// Initial Alpharn// rn// - 16.10.2004 Version 1.5betarn// cleaned the code, added a reward, fixed minor bugsrn//rn// - 23.10.2004 Version 1.6betarn// when giving the FG42, player gets knife/spade, pistolrn// and a grenade as well.rn// as the mills bomb isn't a valid weapon to give,rn// british soldiers get a stickgrenade.rn//rn// - 17.02.2005 Version 1.7betarn// * fixed fullfilled objectives on dod_gliderrn// not being counted for alliesrn// * fixed oversight that players with a grenadern// in their hand would get 999 of them on Reward2rn// * fixed oversight that deaths could become negativern// on Reward5rn// * removed some double codern//rn// - 23.02.2005 Version 1.8betarn// * added features:rn// - added cvar to enable/disable the pluginrn// - added cvars for amount of ammo to give on Reward2 forrn// = bulletsrn// = grenadesrn// = shellsrn// - added cvar for godmode time on Reward4rn// - added cvars for amount of kills/deathsrn// to increase/decrease on Reward5rn// - added cvar for silentmode time on Reward6rn// * changes:rn// - removed minvalue checkrn//rn// - 26.02.2005 Version 1.9betarn// * added features:rn// - added cvar to whether cycle the rewards or just stoprn// after all rewards were given.rn// - added cvar to define the last reward in your row, sorn// if you're using the cycle feature, the plugin knows whenrn// to reset. that way you don't have to use all rewards andrn// not in the numerical row either. you're free to changern// the row in which the rewards are given even if you use the cyclern// feature. you can leave out rewards that you don't want to usern// as well, just be sure to set the cvar to the number of the rewardrn// that's last in your row.rn// * added cvars:rn// - dod_sr_cyclerewards <1/0> = enable/disable starting from thern// beginning after giving the last reward in row.rn// - dod_sr_lastreward <1/2/3/4/5/6> = define last reward in your row.rn// * example 1:rn// - dod_reward1 10rn// - dod_reward2 20rn// - dod_reward3 30rn// - dod_reward4 40rn// - dod_reward5 50rn// - dod_reward6 60rn// - dod_sr_cyclerewards 1rn// - dod_sr_lastreward 6rn// -> after getting reward #6 the scorecount for that player is zeroedrn// and the rewards for him start from the beginning again.rn// * example 2:rn// - dod_reward1 0rn// - dod_reward2 0rn// - dod_reward3 10rn// - dod_reward4 0rn// - dod_reward5 0rn// - dod_reward6 0rn// - dod_sr_cyclerewards 1rn// - dod_sr_lastreward 3rn// -> after getting reward #3 the scorecount for that player is zeroedrn// and the rewards for him start from the beginning again.rn// -> in this case reward #3 is the only reward given as the others arern// disabled, so players will always receive reward #3 every 10 flagcaps.rn// that way you can only use one reward.rn// * notes:rn// - the plugin is highly customizable now, just fit it to your needs andrn// enjoy it!rn//rn// - 05.03.2005 Version 1.95betarn// * added feature:rn// - the way the plugin announces given rewards can be chosen now.rn// either hudmessages or simple chatmessages can be used by settingrn// the new cvar "dod_sr_hudannounce" to eitherrn// 1 = hudmessage ORrn// 2 = chatmessagern//rn// - 11.03.2005 Version 1.95beta2rn// * changed feature:rn// - moved the hudmessage to the center-bottom of the screen, so it doesn'trn// interfer with the crosshairrn//rn// - 27.03.2005 Version 1.95beta3rn// * bugfixes:rn// - rewards that are set to "0" (disabled) aren't given to random peoplern// that have 0 flagpoints anymore.rn// - fixed "godmode" and "silentmode" bugs on respawn/fullcaprn//rn// - 08.04.2005 Version 1.96betarn// Bugfix:rn// * british soldiers get the mills bombrn// instead of a stickgrenade now.rn// (Reward #3)rn// thanks to SidLuke for the fix!

Files

dod_scorerewards.sma Plugin Source 36 KB 337 dl Download Compile

The thread

All 18 posts from 12 people on DoD Score Rewards ( v1.96beta ), kept as they were written.

F Firestorm
started this thread
Posts: 31
Threads: 30
Joined: Jul 2006
07-09-2006, 10:13 AM #1

// This plugin will give special rewards for flagpointsrn// and objectives.rn//rn//rn// REWARDS:rn// ========rn//rn// 1.) Health refillmentrn// 2.) X ammo for weapon currently in handrn// 3.) FG42 with 999shots (any map, any team)rn// 4.) X seconds godmode while glowing in team's colorrn// 5.) X ammo, +X kills, -X deathsrn// 6.) X seconds invisibile/silentrn//rn// You can sort the row in which they are given yourselfrn// and you can even completely disable rewards that you don'trn// want to use.rn//rn// Plugin detects if a reward was reached at the end of a roundrn// and gives the award after respawn, so it's not lost.rnrn

// CVARs (for amxx.cfg):rn// =====================rn//rn// dod_sr_enabled <1/0> = enable/disable DoD ScoreRewardsrn//rn// dod_sr_hudannounce <1/0> = sets way rewards are announcedrn// 1 by hudmessagern// 2 by chatmessagern//rn// dod_sr_cyclerewards <1/0> = enable/disable continouslyrn// starting again after gettingrn// the last rewardrn//rn// dod_sr_lastreward <reward#> = define # of last reward in the row,rn// after this reward the scorecount isrn// reset if you're using the cycle featurern//rn// dod_sr_givebullets <amount> = amount of bullets to givern// (Reward #2 & #5)rn//rn// dod_sr_giveshells <amount> = amount of shells to givern// (Reward #2 & #5)rn//rn// dod_sr_givenades <amount> = amount of nades to givern// (Reward #2 & #5)rn//rn// dod_sr_godtime <time> = time in sec for godmodern// (Reward #4)rn//rn// dod_sr_increasekills <amount> = kills to addrn// (Reward #5)rn//rn// dod_sr_decreasedeaths <amount> = deaths to removern// (Reward #5)rn//rn// dod_sr_silenttime <time> = time in sec for silentmodern// (Reward #6)rn//rn//rn// rn// set amount of flagcaps for normal maps:rn// dod_reward1, dod_reward2, dod_reward3, dod_reward4, dod_reward5, dod_reward6rn//rn// set amount of objectives for para maps:rn// dod_para1, dod_para2, dod_para3, dod_para4, dod_para5, dod_para6rn//rn// Only flagcaptures are counted, not flagpoints, same forrn// objectives on para maps!rn//rn// so set the dod_para* cvars low and the dod_reward* cvars highrn// (or just leave it like it is with the standard values)
rnrn
// CHANGELOG:rn// ==========rn//rn// - 30.09.2004 Version 1.0alpharn// Initial Alpharn// rn// - 16.10.2004 Version 1.5betarn// cleaned the code, added a reward, fixed minor bugsrn//rn// - 23.10.2004 Version 1.6betarn// when giving the FG42, player gets knife/spade, pistolrn// and a grenade as well.rn// as the mills bomb isn't a valid weapon to give,rn// british soldiers get a stickgrenade.rn//rn// - 17.02.2005 Version 1.7betarn// * fixed fullfilled objectives on dod_gliderrn// not being counted for alliesrn// * fixed oversight that players with a grenadern// in their hand would get 999 of them on Reward2rn// * fixed oversight that deaths could become negativern// on Reward5rn// * removed some double codern//rn// - 23.02.2005 Version 1.8betarn// * added features:rn// - added cvar to enable/disable the pluginrn// - added cvars for amount of ammo to give on Reward2 forrn// = bulletsrn// = grenadesrn// = shellsrn// - added cvar for godmode time on Reward4rn// - added cvars for amount of kills/deathsrn// to increase/decrease on Reward5rn// - added cvar for silentmode time on Reward6rn// * changes:rn// - removed minvalue checkrn//rn// - 26.02.2005 Version 1.9betarn// * added features:rn// - added cvar to whether cycle the rewards or just stoprn// after all rewards were given.rn// - added cvar to define the last reward in your row, sorn// if you're using the cycle feature, the plugin knows whenrn// to reset. that way you don't have to use all rewards andrn// not in the numerical row either. you're free to changern// the row in which the rewards are given even if you use the cyclern// feature. you can leave out rewards that you don't want to usern// as well, just be sure to set the cvar to the number of the rewardrn// that's last in your row.rn// * added cvars:rn// - dod_sr_cyclerewards <1/0> = enable/disable starting from thern// beginning after giving the last reward in row.rn// - dod_sr_lastreward <1/2/3/4/5/6> = define last reward in your row.rn// * example 1:rn// - dod_reward1 10rn// - dod_reward2 20rn// - dod_reward3 30rn// - dod_reward4 40rn// - dod_reward5 50rn// - dod_reward6 60rn// - dod_sr_cyclerewards 1rn// - dod_sr_lastreward 6rn// -> after getting reward #6 the scorecount for that player is zeroedrn// and the rewards for him start from the beginning again.rn// * example 2:rn// - dod_reward1 0rn// - dod_reward2 0rn// - dod_reward3 10rn// - dod_reward4 0rn// - dod_reward5 0rn// - dod_reward6 0rn// - dod_sr_cyclerewards 1rn// - dod_sr_lastreward 3rn// -> after getting reward #3 the scorecount for that player is zeroedrn// and the rewards for him start from the beginning again.rn// -> in this case reward #3 is the only reward given as the others arern// disabled, so players will always receive reward #3 every 10 flagcaps.rn// that way you can only use one reward.rn// * notes:rn// - the plugin is highly customizable now, just fit it to your needs andrn// enjoy it!rn//rn// - 05.03.2005 Version 1.95betarn// * added feature:rn// - the way the plugin announces given rewards can be chosen now.rn// either hudmessages or simple chatmessages can be used by settingrn// the new cvar "dod_sr_hudannounce" to eitherrn// 1 = hudmessage ORrn// 2 = chatmessagern//rn// - 11.03.2005 Version 1.95beta2rn// * changed feature:rn// - moved the hudmessage to the center-bottom of the screen, so it doesn'trn// interfer with the crosshairrn//rn// - 27.03.2005 Version 1.95beta3rn// * bugfixes:rn// - rewards that are set to "0" (disabled) aren't given to random peoplern// that have 0 flagpoints anymore.rn// - fixed "godmode" and "silentmode" bugs on respawn/fullcaprn//rn// - 08.04.2005 Version 1.96betarn// Bugfix:rn// * british soldiers get the mills bombrn// instead of a stickgrenade now.rn// (Reward #3)rn// thanks to SidLuke for the fix!
S severance
posted here
Posts: 4
Threads: 0
Joined: Jan 2006
08-06-2006, 06:15 AM #2

This plugin doesnt work! lol sorry but i tryed so many times with different amx versions etc but i cant seem to get it to work on my server help plz!

H Hell Phoenix
posted here
Posts: 201
Threads: 17
Joined: Jan 2005
08-06-2006, 10:57 AM #3

Help us help you. Post any errors you get in your logs etc. We cant help you if you just tell us "it doesnt work"

R RAOCKFISH
posted here
Posts: 5
Threads: 0
Joined: Dec 2006
12-02-2006, 03:39 AM #4
Help us help you. Post any errors you get in your logs etc. We cant help you if you just tell us "it doesnt work"
rnrnOk so im basicly very new to all of this but i think I may have done my cvars wrong but anyways take a look at this and tell me how wrong I am / give example of what to put in. rnrn// dod_sr_enabled 1rn//rn// dod_sr_hudannounce 1rn//rn// dod_sr_cyclerewards 1rn//rn// dod_sr_lastreward 6rn//rn// dod_sr_givebullets 300rn//rn// dod_sr_giveshells 50rn//rn// dod_sr_givenades 100rn//rn// dod_sr_godtime 25rn//rn// dod_sr_increasekills 2rn//rn// dod_sr_decreasedeaths 2rn//rn// dod_sr_silenttime 25rn//rn// dod_reward1 2rn// dod_reward2 5rn// dod_reward3 10rn// dod_reward4 15rn// dod_reward5 20rn// dod_reward6 25

Zor
posted here
Posts: 688
Threads: 75
Joined: Jun 2006
12-02-2006, 09:10 AM #5

Well if you leave the // in front of those values it wont work at all. Those are called comments. Comments are not looked at. So do the following:nnReplace all // with nothing.nnCHeers!

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
12-02-2006, 10:18 AM #6

Ok, heres my problem with this plugin. I am running it on linux... Anyway, It loads, it runs and yet, nothing happens at all. :confused: No errors, just no benefits. :( :( :(

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
12-02-2006, 10:39 AM #7

It's working for me on my server. I'll give you the cvars when I come home in a few hours

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
12-02-2006, 11:12 AM #8

awesome that would rock. Right now its doing absolutely nothing and I really would love to have this going.

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
12-02-2006, 01:20 PM #9

Here ya go try thosernrndod_sr_enabled "1"rndod_sr_hudannounce "1"rndod_sr_cyclerewards "1"rndod_sr_lastreward "6"rndod_sr_givebullets "500"rndod_sr_giveshells "15"rndod_sr_givenades "8"rndod_sr_godtime "15"rndod_sr_increasekills "8"rndod_sr_decreasedeaths "8"rndod_sr_silenttime "20"rndod_reward1 "3"rndod_reward2 "7"rndod_reward3 "11"rndod_reward4 "15"rndod_reward5 "19"rndod_reward6 "22"

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
12-02-2006, 02:04 PM #10

tryin em now. thanks man!

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
12-02-2006, 02:51 PM #11

Ok... I take back my post and rewrite it lol. nnIt is working fabulously now. Thank you so much! Great plugin too!

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
12-03-2006, 07:10 AM #12

Ah it was no problem

YaY
posted here
Posts: 43
Threads: 6
Joined: Dec 2006
12-24-2006, 07:33 PM #13

Is there anywayt that this plugins only gives one nade per cap flag, one nade for one cap flag.

{DwP} 325th ABN
posted here
Posts: 231
Threads: 12
Joined: Aug 2006
11-02-2007, 07:51 PM #14

know its late but i have to give probs fantastic plugin my clan loves it very nicley done good job

O oldfart
posted here
Posts: 3
Threads: 1
Joined: Aug 2005
12-11-2009, 02:19 PM #15

ok, I replaced all the // with:rnrndod_sr_enabled "1"rndod_sr_hudannounce "1"rndod_sr_cyclerewards "1"rndod_sr_lastreward "6"rndod_sr_givebullets "500"rndod_sr_giveshells "15"rndod_sr_givenades "8"rndod_sr_godtime "15"rndod_sr_increasekills "8"rndod_sr_decreasedeaths "8"rndod_sr_silenttime "20"rndod_reward1 "3"rndod_reward2 "7"rndod_reward3 "11"rndod_reward4 "15"rndod_reward5 "19"rndod_reward6 "22" rnrnWill not compile, receiving 1 error. Can someone just post a complete working sma that compiles, that would be helpful! thx

N noddy
posted here
Posts: 250
Threads: 19
Joined: Oct 2004
12-11-2009, 03:08 PM #16

You should be able to compile the plugin via this website, I just compiled for 1.81 fine using the website compiler.rnrnI assume that you are not removing the // from the sma file ? as the cvars there are for information only thats why they are written as comments //rnrnYou would normally add the cvars in your server.cfg or amxx.cfg

O oldfart
posted here
Posts: 3
Threads: 1
Joined: Aug 2005
12-11-2009, 03:27 PM #17

Yeah NVM, I figured it out...I just added the filesrnrndod_sr_enabled "1" rndod_sr_hudannounce "1" rndod_sr_cyclerewards "1" rndod_sr_lastreward "6" rndod_sr_givebullets "500" rndod_sr_giveshells "15" rndod_sr_givenades "8" rndod_sr_godtime "20" rndod_sr_increasekills "8" rndod_sr_decreasedeaths "8" rndod_sr_silenttime "20" rndod_reward1 "3"rndod_reward2 "7"rndod_reward3 "11"rndod_reward4 "15"rndod_reward5 "19"rndod_reward6 "22" rnrnto the amxx.cfg and all is golden...thanks anyways!

{RSR}Crazyhorse_cdn
posted here
Posts: 219
Threads: 47
Joined: Sep 2006
01-21-2014, 10:03 AM #18

how would I switch the fg42 for a bar in the weapons rewards ?? can I just edit it and take out fg42 and replace it with bar ??

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC