Official Soldat Forums
Server Talk => Scripting Releases => Topic started 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)
-
hi (not spam, he wanted us to comment!)
-
hi (not spam, he wanted us to comment!)
*opening the scripting releases forum* :)
"YAY YAY A COMMENT!" :D
... ::)
... :(
... >:(
feck u miketh, feeeck uuuu ;)
-
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?
-
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.
-
(/loadcon will not trigger ActivateServer)
-
Updated :D