[ajuda] This Server is Full.
#5

Quote:
Originally Posted by Macintosh
Посмотреть сообщение
No OnPlayerConnect \/

pawn Код:
new mIP[16], lIP[16], Nome[MAX_PLAYER_NAME], string[85];
GetPlayerIp(playerid, mIP, sizeof(mIp));
GetPlayerName(playerid, Nome, sizeof(Nome));
for(new i = 0; i <= GetMaxPlayers(); i++)
{
    GetPlayerIp(i, lIP, sizeof(lIP));
}
if(strcmp(mIP, lIP, true) && !strcmp(Nome, "Macintosh", true)) // No lugar do nome Macintosh vocк coloca o nome do player que usa internet compartilhada com o familiar ou amigo.
{
    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;
}
Ou

https://sampforum.blast.hk/showthread.php?tid=293606
Desta forma, ele sу irб comparar o ultimo IP que foi checado pelo loop, logo coloque o strcmp dentro do loop !
Reply


Messages In This Thread
[ajuda] This Server is Full. - by Cristhian - 29.10.2011, 23:52
Re: [ajuda] This Server is Full. - by Macintosh - 29.10.2011, 23:55
Re: [ajuda] This Server is Full. - by steki. - 29.10.2011, 23:56
Re: [ajuda] This Server is Full. - by RebeloX - 30.10.2011, 00:00
Re: [ajuda] This Server is Full. - by Shadoww5 - 30.10.2011, 00:43
Re: [ajuda] This Server is Full. - by CristoferBahr - 30.10.2011, 00:43
Re: [ajuda] This Server is Full. - by CyNiC - 30.10.2011, 01:04
Re: [ajuda] This Server is Full. - by Macintosh - 30.10.2011, 02:23
Re: [ajuda] This Server is Full. - by Cristhian - 30.10.2011, 14:06
Re: [ajuda] This Server is Full. - by Ricop522 - 30.10.2011, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)