Plugins snippet

From Valve Developer Community
Jump to: navigation, search

Sniplets For Plugins

IP Addresses

To get the ip address of a player.

    int index = engine->IndexOfEdict(pEntity);
    INetChannelInfo *netinfo = engine->GetPlayerNetInfo(index);
    const char *ip = netinfo->GetAddress();