Plugins snippet

From Valve Developer Community
Revision as of 00:56, 26 August 2012 by Motherfat (talk | contribs)
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

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();