ModeBaseExtended

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
kastun
Posts: 18
Joined: 28 Oct 2012, 10:05

ModeBaseExtended

Post by kastun »

I extended the ModeBase script because I missed some events and thought other may also need them for their gamemode.
If you want to use it just extend the ModeBaseExtended script and put the unmodified files from it together with yours.

Description
The ModeBaseExtended script creates some more custom events than the ModeBase script:

Known from ModeBase
  • OnNewPlayer: CSmPlayer Player
  • OnNewSpectator: CSmPlayer Spectator
Additionally from ModeBaseExtended
  • OnPlayerLeft: Ident Id, Text[Text] Data (array with the keys Login and Name)
  • OnSpectatorLeft: Ident Id, Text[Text] Data (array with the keys Login and Name)
  • OnPlayerChangingClan: CSmPlayer Player
» Download

Version history
  • 1.1.0 Changed leave detection (Note: Alter your script 1.0.0 » 1.1.0)
  • 1.0.0 Initial release
Alter your script
  • 1.0.0 » 1.1.0
    In your ***OnPlayerLeft*** and ***OnSpectatorLeft*** code blocks
    find Login replace with Data["Login"]
    and
    find Name replace with Data["Name"]
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest