Changes between Version 6 and Version 7 of Hooks


Ignore:
Timestamp:
Jul 7, 2014, 8:03:02 PM (10 years ago)
Author:
Christian Illy
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hooks

    v6 v7  
    33All hooks have to executable files in ''SDTD_BASE/hooks/<name of hook>/<any name>.sh''. The folder ''<name of hook>'' has to be in exactly the same case as the hook name column in the table below shows it.
    44
     5If you want to use the functions of the management scripts in your hook you can add this to the start of your script:
     6{{{
     7#!/bin/bash
     8. /usr/local/lib/7dtd/common.sh
     9}}}
     10An example can be found in the greet.sh hook for playerConnect.
     11Note that you have to use Bash as interpreter for your script if you want to use the script functions!
     12
    513If you think a hook for another event could be interesting please [/newticket create a ticket] or [[Author|contact me]].
    614
    715Currently the following hooks are defined:
    8 
    916
    1017{{{#!th align=center
     
    1623{{{#!th align=center
    1724Passed parameters
     25}}}
     26{{{#!th align=center
     27Examples
    1828}}}
    1929|--------------------------------
     
    3040    1. Nickname
    3141    1. Steam ID
     42}}}
     43{{{#!td align=left
    3244}}}
    3345|--------------------------------