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
- 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
Version history
- 1.1.0 Changed leave detection (Note: Alter your script 1.0.0 » 1.1.0)
- 1.0.0 Initial release
- 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"]