I really need help !!!
#1

Hi all, I really need help...
Someone is hacking my server all the time...
Is there any protection I can put so he won't be able to do it...
It's not bot, he connects with normal nick forum RP servers like James_Wood was his nick one time and suddenly he wrote something over the entire screen like 11/11/11/1111111111111111111111111 etc.
And then all of the commands are not working and I have to restart my server.
I really need help so please can someone give me some anti hack program or something like that, some protection for my server...??
Reply
#2

Ban him.

/rcon ban [id]
Reply
#3

Ban him when i Connect to the server Whit that name

Under onPlayerConnect

Код:
     new name[24];
     GetPlayerName(playerid, name, 24);
     if(strfind(name, "James_Wood", false) != -1)//Change That to His name 
     BanEx(playerid,"Get out off my Server Prick!");// Message They gets post in the Ban.txt
This Here Checks if hes Name is James_Wood if It is I ban the player
I have Test It and it Works
Reply
#4

Quote:
Originally Posted by ZutDenOpFraSlap
Ban him when i Connect to the server Whit that name

Under onPlayerConnect

Код:
    new name[24];
    GetPlayerName(playerid, name, 24);
    if(strfind(name, "James_Wood", false) != -1)//Change That to His name 
    BanEx(playerid,"Get out off my Server Prick!");// Message They gets post in the Ban.txt
This Here Checks if hes Name is James_Wood if It is I ban the player
I have Test It and it Works
Whats the point in that?
1) Just add James_Wood to samp.ban
2) He might use different names
Reply
#5

pawn Код:
else if(RegistrationStep[playerid] == 2)
      {
        new year, month,day;
        getdate(year, month, day);
        new DateInfo[3][20];
            split(text, DateInfo, '/');
            if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
            {
              SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
              return 0;
            }
            new check = year - strvalEx(DateInfo[2]);
            if(check == year)
            {
              SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Birthdate? (Use dd/mm/yyyy)");
              return 0;
            }
            if(strvalEx(DateInfo[1]) > month)
            {
              check -= 1;
            }
            else if(strvalEx(DateInfo[1]) == month && strvalEx(DateInfo[0]) > day)
            {
              check -= 1;
            }
            PlayerInfo[playerid][pAge] = check;
            format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
            SendClientMessage(playerid, COLOR_YELLOW2, string);
            RegistrationStep[playerid] = 3;
            SendClientMessage(playerid, COLOR_LIGHTRED, "What is your Origin? (Type in: USA, Europe or Asia)");
            return 0;
      }
pawn Код:
stock strvalEx(const string[])
{
    if(strlen(string) >= 50)
    {
      return 0;
    }
    return strval(string);
}
Do this and will work :P
Reply
#6

Quote:
Originally Posted by MoroJr™
pawn Код:
stock strvalEx(const string[])
{
    if(strlen(string) >= 50)
    {
       return 0;
    }
    return strval(string);
}
Do this and will work :P
Where to put this...please tell me


EDIT: never mind...i fix it and it works...thanks :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)