Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
- {
- new octets[4];
- Steam_GetPublicIP(octets);
- decl String:ServerIp[16];
- Format(ServerIp, sizeof(ServerIp), "%d.%d.%d.%d", octets[0], octets[1], octets[2], octets[3]);
- if (strcmp(ServerIp, "74.91.124.250", false) != 0)
- {
- PrintToServer("Sorry! This plugin cannot be run on this server.");
- strcopy(error, err_max, "This server is not authorized to run this plugin.");
- return APLRes_Failure;
- }
- return APLRes_Success;
- }
Advertisement
Add Comment
Please, Sign In to add comment