Difference between revisions of "Game Events (Source)"

From AlliedModders Wiki
Jump to: navigation, search
(Counter-Strike: Source Events)
(Half-Life 2 Server Events)
Line 16: Line 16:
 
{{hl2msg|bool|password}}
 
{{hl2msg|bool|password}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
 +
 +
=== server_shutdown ===
 +
{{qnotice|Server shut down}}
 +
{{begin-hl2msg|server_shutdown|string}}
 +
{{hl2msg|string|reason}}
 +
{{end-hl2msg}}
 +
 +
=== server_cvar ===
 +
{{qnotice|A server console var has changed}}
 +
{{begin-hl2msg|server_cvar|string}}
 +
{{hl2msg|string|cvarname}}
 +
{{hl2msg|string|cvarvalue}}
 +
{{end-hl2msg}}
 +
 +
=== server_msg ===
 +
{{qnotice|A generic server message}}
 +
{{begin-hl2msg|server_message|string}}
 +
{{hl2msg|string|text}}
 +
{{end-hl2msg}}
 +
 +
=== server_addban ===
 +
{{qnotice|When the server has a ban added}}
 +
{{begin-hl2msg|server_addban|string}}
 +
{{hl2msg|string|name}}
 +
{{hl2msg|string|userid}}
 +
{{hl2msg|string|networkid}}
 +
{{hl2msg|string|ip}}
 +
{{hl2msg|string|duration}}
 +
{{hl2msg|string|by}}
 +
{{hl2msg|bool|kicked}}
  
 
= Counter-Strike: Source Events =
 
= Counter-Strike: Source Events =

Revision as of 22:50, 7 June 2007

Half-Life 2 Events

Half-Life 2 Server Events

server_spawn

Note: Send once a server starts

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


server_shutdown

Note: Server shut down

Name: server_shutdown
Structure:
string reason {{{3}}}


server_cvar

Note: A server console var has changed

Name: server_cvar
Structure:
string cvarname {{{3}}}
string cvarvalue {{{3}}}


server_msg

Note: A generic server message

Name: server_message
Structure:
string text {{{3}}}


server_addban

Note: When the server has a ban added

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

Counter-Strike: Source Events

team_info

Note: Info about team

Name: team_info
Structure:
byte teamid {{{3}}}
string teamname {{{3}}}


team_score

Note: Team score changed

Name: team_info
Structure:
byte teamid {{{3}}}
short score {{{3}}}


player_team

Note: Player change his team

Name: player_team
Structure:
short userid {{{3}}}
byte team {{{3}}}
byte oldteam {{{3}}}
bool disconnect {{{3}}}


player_class

Note: A player changed his class

Name: player_class
Structure:
short userid {{{3}}}
string class {{{3}}}


player_death

Note: A game event, name may be 32 charaters long

Name: player_death
Structure:
short userid {{{3}}}
short attacker {{{3}}}