Quote:
Originally Posted by еddy
I think this is what you need:
pawn Code:
public OnPlayerConnect(playerid) { new ip[20]; GetPlayerIp(playerid, ip, sizeof(ip)); if(strcmp(ip, "TypeInTheIPHere", true)) { SendClientMessage(playerid, 0xFFFFFFFF, "You've been banned"); Ban(playerid); return 1; } return 1; }
|
You undestand wrong
![Sad](images/smilies/sad.gif)
, when someone say ingame something like "join my server 1.1.11.1:7777 " or something like that , then the script will kick the player.