I really need help !!! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I really need help !!! (
/showthread.php?tid=73702)
I really need help !!! -
IVuljak - 17.04.2009
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...??
Re: I really need help !!! -
Pyrokid - 17.04.2009
Ban him.
/rcon ban [id]
Re: I really need help !!! -
basker - 18.04.2009
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
Re: I really need help !!! -
ICECOLDKILLAK8 - 18.04.2009
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
Re: I really need help !!! -
Danut - 18.04.2009
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
Re: I really need help !!! -
IVuljak - 20.04.2009
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