home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / DVDStar / Akce / Half-Life2 / install-at2v4release2005.exe / AntTroopDuece / resource / serverevents.res < prev    next >
Text File  |  2005-05-08  |  3KB  |  102 lines

  1. //=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. ===========
  2. //
  3. // The copyright to the contents herein is the property of Valve, L.L.C.
  4. // The contents may be used and/or copied only with the written permission of
  5. // Valve, L.L.C., or in accordance with the terms and conditions stipulated in
  6. // the agreement/contract under which the contents have been supplied.
  7. //=============================================================================
  8.  
  9. // Don't change this file, it defines engine events
  10.  
  11. "engineevents"
  12. {
  13. //////////////////////////////////////////////////////////////////////
  14. // Server events
  15. //////////////////////////////////////////////////////////////////////
  16.  
  17.     "server_spawn"                // send once a server starts
  18.     {
  19.         "hostname"    "string"    // public host name
  20.         "address"    "string"    // hostame, IP or DNS name    
  21.         "port"        "short"        // server port
  22.         "game"        "string"    // game dir 
  23.         "mapname"    "string"    // map name
  24.         "maxplayers"    "long"        // max players
  25.         "os"        "string"    // WIN32, LINUX
  26.         "dedicated"    "bool"        // true if dedicated server
  27.         "password"    "bool"        // true if password protected
  28.     }
  29.     
  30.     "server_shutdown"             // server shut down    
  31.     {
  32.         "reason"    "string"    // reason why server was shut down
  33.     }
  34.     
  35.     "server_cvar"                 // a server console var has changed
  36.     {
  37.         "cvarname"    "string"    // cvar name, eg "mp_roundtime"        
  38.         "cvarvalue"    "string"    // new cvar value
  39.     }
  40.     
  41.     "server_message"            // a generic server message
  42.     {
  43.         "text"        "string"    // the message text
  44.     }
  45.  
  46.     "server_addban"
  47.     {
  48.         "name"        "string"    // player name
  49.         "userid"    "short"        // user ID on server
  50.         "networkid"    "string"    // player network (i.e steam) id
  51.         "ip"        "string"    // IP address
  52.         "duration"    "string"    // length of the ban
  53.         "by"        "string"    // banned by...
  54.         "kicked"    "bool"        // whether the player was also kicked
  55.     }
  56.  
  57.     "server_removeban"
  58.     {
  59.         "networkid"    "string"    // player network (i.e steam) id
  60.         "ip"        "string"    // IP address
  61.         "by"        "string"    // removed by...
  62.     }
  63.     
  64.     "player_connect"            // a new client connected
  65.     {
  66.         "name"        "string"    // player name        
  67.         "index"        "byte"        // player slot (entity index-1)
  68.         "userid"    "short"        // user ID on server (unique on server)
  69.         "networkid"    "string"    // player network (i.e steam) id
  70.         "bot"            "bool"        // true if player is a AI bot
  71.         "address"    "string"    // ip:port
  72.     }
  73.     
  74.     "player_info"                // a player changed his name
  75.     {
  76.         "name"        "string"    // player name        
  77.         "index"        "byte"        // player slot (entity index-1)
  78.         "userid"    "short"        // user ID on server (unique on server)
  79.         "networkid"    "string"    // player network (i.e steam) id
  80.         "bot"            "bool"        // true if player is a AI bot
  81.     }
  82.     
  83.     "player_disconnect"            // a client was disconnected
  84.     {
  85.         "userid"    "short"        // user ID on server
  86.         "reason"    "string"    // "self", "kick", "ban", "cheat", "error"
  87.         "name"        "string"    // player name
  88.         "networkid"    "string"    // player network (i.e steam) id
  89.     }
  90.  
  91.     "player_activate"
  92.     {
  93.         "userid"    "short"        // user ID on server
  94.     }
  95.  
  96.     "player_say"
  97.     {
  98.         "userid"    "short"        // user ID on server
  99.         "text"        "string"    // the say text
  100.     }
  101. }
  102.