22.01.2012, 23:23
(
Последний раз редактировалось Kitten; 24.11.2013 в 06:17.
)
Solved
Woah, yeah I think it's a new hack basically a player will disconnect in mod ***** using a method "Connecting" then when they rejoin they will spam. Basically it's done using cad. Anyways whats the IP? I wanna have a go can you send via PM please Hope so of the info helped.
|
Okay this is what you do.
Open back up the server Login on rcon do /rcon players Then the user that is spamming If you see his ip and his playerid do /rcon ban (playerid) CONSOLE or /rcon banip (IP). If that don't work I'll send you a /banip command to ban them Give me a rep+ if i helped you. PM me the server ip. |
public OnPlayerConnect(playerid)
{
ResetVars(playerid);
new time = gettime();
new IP[16];
GetPlayerIp(playerid,IP,sizeof(IP));
//server flooders
new joins;
for(new i=0;i<10;i++)
{
if(LastTenJoinTimes[i] + 10 >= time)
{
if(!strcmp(LastTenJoinIps[i],IP,false) &&
LastTenJoinIps[i][0] != '\0')
{
joins++;
}
}
}
joins += 1;//so it counts itself
if(joins >= 3)
{
//3 connects from the same IP within 10 seconds
BanEx(playerid,"Server Flooder");
}
new index;
new ttime = time;
for(new i=0;i<10;i++)
{
if(LastTenJoinTimes[i] <= ttime)
{
ttime = LastTenJoinTimes[i];
index = i;
}
}
LastTenJoinTimes[index] = time;
LastTenJoinIps[index] = IP;
}
public OnPlayerText(playerid,text[])
{
if(strfind(text,"<insert site here>",true) != -1) return 0;
}