29.10.2011, 12:51
pawn Код:
new mIP[16], lIP[16], Nome[MAX_PLAYER_NAME], string[85];
GetPlayerIp(playerid, mIP, sizeof(mIp));
for(new i = 0; i <= GetMaxPlayers(); i++)
{
GetPlayerIp(i, lIP, sizeof(lIP));
}
if(strcmp(mIP, lIP, true))
{
GetPlayerName(playerid, Nome, sizeof(Nome));
format(string, sizeof(string), "%s[%i] foi kickado por haver outro ip igual o dele no server", Nome, playerid);
SendClientMessage(playerid, -1, string);
Kick(playerid);
return 1;
}