oaaron99

Untitled

Jun 22nd, 2015
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
  2. {
  3. new octets[4];
  4. Steam_GetPublicIP(octets);
  5.  
  6. decl String:ServerIp[16];
  7. Format(ServerIp, sizeof(ServerIp), "%d.%d.%d.%d", octets[0], octets[1], octets[2], octets[3]);
  8.  
  9. if (strcmp(ServerIp, "74.91.124.250", false) != 0)
  10. {
  11. PrintToServer("Sorry! This plugin cannot be run on this server.");
  12. strcopy(error, err_max, "This server is not authorized to run this plugin.");
  13. return APLRes_Failure;
  14. }
  15.  
  16. return APLRes_Success;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment