Problems with banning.
#1

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.
Reply
#2

they have dynamic ip
Reply
#3

Range ban their IP.
Reply
#4

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.
Reply
#5

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.
Reply
#6

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)