Server IP Port range? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server IP Port range? (
/showthread.php?tid=93588)
Server IP Port range? -
XeoN_13 - 25.08.2009
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..
Re: Server IP Port range? -
XeoN_13 - 25.08.2009
any one please help :P