Tempban system kicks all players while connecting
#7

Quote:
Originally Posted by bgedition
Посмотреть сообщение
or try:
pawn Код:
new name[24],ip[16];
    GetPlayerIp(playerid,ip,sizeof ip);
    GetPlayerName(playerid,name,sizeof name);
    for(new id; id < 24; id++)
    {
        if(name == TempBans[id][BannedName])
        {   // ban type is name
            SendClientMessage(playerid,COLOR_RED,"Your ban has not expired!");
            Kick(playerid);
            return 1;
        }

        if(ip == TempBans[id][BannedIP])
        {   // ban type is ip !
            SendClientMessage(playerid,COLOR_RED,"Your ban has not expired!");
            Kick(playerid);
            return 1;
        }
You can't compare strings like that in Pawn.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)