Named in the code or data of server, client.
PlayerConnectEvent[GameEventHandler("player_connect")]
public HookResult OnPlayerConnect(PlayerConnectEvent args) {
// args.Name, args.Userid, args.Networkid, args.Xuid, args.Bot
return HookResult.Continue;
}| Field | Type | Deadworks property | Valve's comment |
| name | string | Name string | player name |
| userid | player_controller | Userid CBasePlayerController? | user ID on server (unique on server) |
| networkid | string | Networkid string | player network (i.e steam) id |
| xuid | uint64 | Xuid ulong | steam id |
| bot | bool | Bot bool |