Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: JFK on April 19, 2008, 08:20:07 pm

Title: XtraCommands v1.1
Post by: JFK on April 19, 2008, 08:20:07 pm
Script Name: XtraCommands v1.1
Script Description: Some Functions that use values which should only be assigned once
Original Author(s): JFK
Core Version:2.6.3

code (http://nopaste.com/p/aoYlNF42b)

XtraCommands is a script that contains functions/procedures which can be called by other scripts using CrossFunc. These functions use values that should only be assigned once, thus cannot be copied in to multiple scripts running on one server.
This first version contains two functions: TempMute and LineMap. The functions can be also called through AdminCommand. It also contains a (experimental) 'fake' event called OnEndRound.
Read the comments in the code for more information.
Future versions of XtraCommands should contain more of these functions. If anybody knows something that should be added, please let me know.

in 1.1 (see code for details):

-Fixed GetMaxScore() not being called at /loadcon
-Fixed (hopefully) permanently mute/ban bug

Thanks to: mikebm (same reason as last time :p)
Title: Re: XtraCommands v1.0
Post by: miketh2005 on April 24, 2008, 08:21:07 pm
hi (not spam, he wanted us to comment!)
Title: Re: XtraCommands v1.0
Post by: JFK on April 25, 2008, 07:24:57 am
hi (not spam, he wanted us to comment!)

*opening the scripting releases forum*  :)
"YAY YAY A COMMENT!"   :D
...  ::)
...  :(
...  >:(
feck u miketh, feeeck uuuu ;)
Title: Re: XtraCommands v1.0
Post by: Boblekonvolutt on April 25, 2008, 07:55:14 am
Well, it's a nice script. But if I needed it I'd really prefer to write my own so it would be easier for me to work with. Btw, wouldn't it check score limits before it loaded the new .ini when you /loadcon with that?
Title: Re: XtraCommands v1.0
Post by: JFK on April 25, 2008, 09:25:50 am
Well, it's a nice script. But if I needed it I'd really prefer to write my own so it would be easier for me to work with. Btw, wouldn't it check score limits before it loaded the new .ini when you /loadcon with that?

I'm afraid you're right, the GetMaxScore() procedure there doesn't do anything new, it can be removed. However if you do /loadcon, doesn't that trigger the ActivateServer() event? If not, i might move GetMaxScore() from ActivateServer() to OnMapChange(). That would solve the problem.
Title: Re: XtraCommands v1.0
Post by: Boblekonvolutt on April 25, 2008, 10:00:22 am
(/loadcon will not trigger ActivateServer)
Title: Re: XtraCommands v1.1
Post by: JFK on April 29, 2008, 07:28:22 am
Updated :D