Author Topic: XtraCommands v1.1  (Read 3079 times)

0 Members and 1 Guest are viewing this topic.

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
XtraCommands v1.1
« 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

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)
« Last Edit: April 29, 2008, 07:28:13 am by JFK »
Come join: EliteCTF
Listen to: My Music

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: XtraCommands v1.0
« Reply #1 on: April 24, 2008, 08:21:07 pm »
hi (not spam, he wanted us to comment!)
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: XtraCommands v1.0
« Reply #2 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 ;)
Come join: EliteCTF
Listen to: My Music

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: XtraCommands v1.0
« Reply #3 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?

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: XtraCommands v1.0
« Reply #4 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.
Come join: EliteCTF
Listen to: My Music

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: XtraCommands v1.0
« Reply #5 on: April 25, 2008, 10:00:22 am »
(/loadcon will not trigger ActivateServer)

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: XtraCommands v1.1
« Reply #6 on: April 29, 2008, 07:28:22 am »
Updated :D
Come join: EliteCTF
Listen to: My Music