Plugins snippet: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Stub}}
Sniplets For Plugins
Sniplets For Plugins



Revision as of 00:56, 26 August 2012

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