12.04.2011, 11:02
https://sampwiki.blast.hk/wiki/GetPlayerIp
https://sampwiki.blast.hk/wiki/Strcmp
https://sampwiki.blast.hk/wiki/Strcmp
pawn Код:
if(PlayerInfo[playerid][pAccountProtection] == 1)
{
GetPlayerIp(playerid, currentip, sizeof(currentip));
if ( strcmp(currentip, PlayerInfo[playerid][pLastIp]) )
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW, "Ваш IP адрес не совпадает с IP адресом использованным при установке защиты аккаунта!");
Kick(playerid);
}
}

