Difference between revisions of "Game Events (Source)"

From AlliedModders Wiki
Jump to: navigation, search
(Game Events)
(Generic Source Server Events)
Line 10: Line 10:
 
* [[Perfect Dark: Source Events]]
 
* [[Perfect Dark: Source Events]]
 
* [[Iron Grip: Source  Events]]
 
* [[Iron Grip: Source  Events]]
 
= Generic Source Server Events =
 
=== server_spawn ===
 
{{qnotice|Send once a server starts}}<br>
 
{{begin-hl2msg|server_start|string}}
 
{{hl2msg|string|hostname}}
 
{{hl2msg|string|address}}
 
{{hl2msg|string|port}}
 
{{hl2msg|string|game}}
 
{{hl2msg|string|mapname}}
 
{{hl2msg|long|maxplayers}}
 
{{hl2msg|string|os}}
 
{{hl2msg|bool|dedicated}}
 
{{hl2msg|bool|password}}
 
{{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}}
 
{{end-hl2msg}}
 
 
=== server_removeban ===
 
{{qnotice|When the server has a ban removed}}
 
{{begin-hl2msg|server_removeban|string}}
 
{{hl2msg|string|networkid}}
 
{{hl2msg|string|ip}}
 
{{hl2msg|stsring|by}}
 
{{end-hl2msg}}
 
 
=== player_connect ===
 
{{qnotice|A new player connected}}
 
{{begin-hl2msg|player_connect|string}}
 
{{hl2msg|string|name}}
 
{{hl2msg|byte|index}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|networkid}}
 
{{hl2msg|string|address}}
 
{{end-hl2msg}}
 
 
=== player_info ===
 
{{qnotice|A player changed his name}}
 
{{begin-hl2msg|player_info|string}}
 
{{hl2msg|string|name}}
 
{{hl2msg|byte|index}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|networkid}}
 
{{hl2msg|bool|bot}}
 
{{end-hl2msg}}
 
 
=== player_disconnect ===
 
{{qnotice|A client was disconnected}}
 
{{begin-hl2msg|player_disconnect|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|reason}}
 
{{hl2msg|string|name}}
 
{{hl2msg|string|networkid}}
 
{{end-hl2msg}}
 
 
=== player_activate ===
 
{{qnotice|A client has entered the game (connected and loaded)}}
 
{{begin-hl2msg|player_activate|string}}
 
{{hl2msg|short|userid}}
 
{{end-hl2msg}}
 
 
=== player_say ===
 
{{qnotice|When a client sends a message in chat}}
 
{{begin-hl2msg|player_say|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|text}}
 
{{end-hl2msg}}
 

Revision as of 16:15, 8 June 2007