I hereby claim:
- I am Bo0m on github.
- I am bo0m (https://keybase.io/bo0m) on keybase.
- I have a public key whose fingerprint is 545D 1C6E 3D5E 686F 7053 DE7D C739 5B2A F775 5E14
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#define WHITELIST_IP "1.2.3.4" | |
new String:g_sServerIp[16]; | |
public OnPluginStart() | |
{ | |
// Pull server IP as integer from hostip, then bit shift into string format. | |
new iServerIP = GetConVarInt(FindConVar("hostip")); | |
Format(g_sServerIp, sizeof(g_sServerIp), "%i.%i.%i.%i", (iServerIP >> 24) & 0x000000FF, (iServerIP >> 16) & 0x000000FF, (iServerIP >> 8) & 0x000000FF, iServerIP & 0x000000FF); |