Main Page » Server side hooks


Contents

Server Side Hooks

Introduction

A hook is defined via a hook name. When the server runs certain actions it will also run all hooks registered again that action's hook name.

Hooks

server_channeltext

 server_channeltext(
   integer playerid,
   string channel,
   string message)

Is called when ever a chat message is sent from the server to the client.

server_newgame

 server_newgame()

Is called when the server starts a new game.

server_newround

 server_newround()

Is called when the server starts a new round.

server_playing

 server_playing()

Is called when players are actualy make there moves (either buying or aiming).

server_score

 server_score()

Is called when the overall score screen is being show (at the end of the match).

Donate to Scorched3D Get it from CNET Download.com! 5 Stars