Generic Source Server Events

From AMWiki

Jump to: navigation, search
Refer back to Game Events (Source) for more events.

These should apply to all Source Engine Servers

Contents

[edit] server_spawn

Note: Send once a server starts

Name: server_start
Structure:
string hostname
string address
string port
string game
string mapname
long maxplayers
string os
bool dedicated
bool password


[edit] server_shutdown

Note: Server shut down

Name: server_shutdown
Structure:
string reason


[edit] server_cvar

Note: A server console var has changed

Name: server_cvar
Structure:
string cvarname
string cvarvalue


[edit] server_msg

Note: A generic server message

Name: server_message
Structure:
string text


[edit] server_addban

Note: When the server has a ban added

Name: server_addban
Structure:
string name
string userid
string networkid
string ip
string duration
string by
bool kicked


[edit] server_removeban

Note: When the server has a ban removed

Name: server_removeban
Structure:
string networkid
string ip
stsring by


[edit] player_connect

Note: A new player connected

Name: player_connect
Structure:
string name
byte index
short userid
string networkid
string address


[edit] player_info

Note: A player changed his name

Name: player_info
Structure:
string name
byte index
short userid
string networkid
bool bot


[edit] player_disconnect

Note: A client was disconnected

Name: player_disconnect
Structure:
short userid
string reason
string name
string networkid


[edit] player_activate

Note: A client has entered the game (connected and loaded)

Name: player_activate
Structure:
short userid


[edit] player_say

Note: When a client sends a message in chat

Name: player_say
Structure:
short userid
string text


Personal tools