SA-MP Forums Archive
Problems with banning. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problems with banning. (/showthread.php?tid=442496)



Problems with banning. - RiChArD_A - 07.06.2013

Hi, when I ban people on server they still can rejoin if i restart the server or if they restart their PC. Why? How can I solve this? Their Nick, and IP are still saved in the samp.ban file.


Re: Problems with banning. - DaTa[X] - 07.06.2013

they have dynamic ip


Re: Problems with banning. - Red_Dragon. - 07.06.2013

Range ban their IP.


AW: Problems with banning. - HurtLocker - 07.06.2013

create 1 more enum which will be 0 for non banned, 1 for banned player. If playerinfo[playerid][Banned]==1 then ban him on logging in.


Re: AW: Problems with banning. - RiChArD_A - 07.06.2013

Quote:
Originally Posted by DaTa[X]
Посмотреть сообщение
they have dynamic ip
Is there any solution for "dynamic ip"

Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
Range ban their IP.
Dude that's what the /ban command does.

Quote:
Originally Posted by HurtLocker
Посмотреть сообщение
create 1 more enum which will be 0 for non banned, 1 for banned player. If playerinfo[playerid][Banned]==1 then ban him on logging in.
Hummm... I'll try this for now and see if works.


Re: Problems with banning. - Kalladel - 08.06.2013

Put this under OnPlayerConnect
pawn Код:
if(PlayerInfo[playerid][pBanned] == 1)
{
        SendClientMessage(playerid, WHITE, "You're banned from the server.");
        Kick(playerid);
        return 1;
}
This if the account is banned, You gotta make it with your variables/defines for the IP check if its banned or not!