Advertisement
_iLustcheR_

[SAMP-IL] Four Ways To Protect Your Server - First Way

Oct 18th, 2016
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.22 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define IP "0.0.0.0"
  4.  
  5. public OnGameModeInit()
  6. {
  7.     new ServerIP[16];
  8.     GetServerVarAsString("bind", ServerIP, sizeof(ServerIP));
  9.     if(strcmp(ServerIP, IP, false)) SendRconCommand("exit");
  10.     return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement