Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: JotEmI on November 17, 2008, 08:23:03 pm

Title: Promotions with damage modifier.
Post by: JotEmI on November 17, 2008, 08:23:03 pm
Script Name: Promotions
Original Author(s): JotEmI
Core Version: 2.6.3
Description: Very simple script but maybe someone will find it usefull. The idea is to grant players with military rank promotions for achieving certain amount of kills. Each promotion goes along with damage ingression by % value. You can change this value in promotions.pas in line "DmgModifier=". It's been tested and should work just fine.
Title: Re: Promotions with damage modifier.
Post by: rumpel on December 06, 2008, 03:48:34 pm
nice thanks.. added to my server
Title: Re: Promotions with damage modifier.
Post by: iDante on December 06, 2008, 06:28:32 pm
Reminds me of my old script, but more complicated (http://soldatcentral.com/index.php?page=script&f=6).

Nicely done, but do you need to clear the array spots every time someone leaves and joins? Wouldn't just clearing them on joining only work just as well?
Title: Re: Promotions with damage modifier.
Post by: shantec on December 06, 2008, 06:45:05 pm
Quote from: iDante
Wouldn't just clearing them on joining only work just as well?

Or @ leaving? o.O
Title: Re: Promotions with damage modifier.
Post by: JotEmI on December 16, 2008, 10:04:18 am
In theory yes, it should work fine when clearing arrays only on leaving. But I've already seen scripts generating errors because of this. It's just a couple of lines of code more, you may delete them if you want.