Server IP Port range?
#1

Hello, im here once again to ask a question . I have a simple code to prevent people from giving out ip's on servers "so anoying" to take players away from servers. well this is my code wich works

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strfind(cmdtext, "7777", true) != -1)
    {
    Kick(playerid);
    }
    if(strfind(cmdtext, "8888", true) != -1)
    {
    Kick(playerid);
    }
    if(strfind(cmdtext, "9999", true) != -1)
    {
    Kick(playerid);
    }
    if(strfind(cmdtext, "5555.", true) != -1)
    {
    Kick(playerid);
    }
    if(strfind(cmdtext, "6666.", true) != -1)
    {
    Kick(playerid);
    }
}
The problem is i w hant to see if theres a way to make a range of ports like samp.ban , sistem where you ad IP like this and it bans the range: say 71.321.*.* or 71.321.***.** , well is there a way with pawno to do that like to a port to range it like PORT :**** , ?

if i dint explain well what im tring to say is to make a simple line add ALL ports instead of adding each single port to a new If(strfind(cmdtext , etc..
Reply
#2

any one please help :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)