SA-MP Forums Archive
How to put protection for Proxy? - 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)
+--- Thread: How to put protection for Proxy? (/showthread.php?tid=603860)



How to put protection for Proxy? - iulicxd - 28.03.2016

If i ban player,this player change his ip with Proxy-Server....
Please help me,how to put Anti-Proxy?


Re: How to put protection for Proxy? - Burridge - 28.03.2016

You could ban their serial instead.

A good example of how it works: http://forum.sa-mp.com/showpost.php?...0&postcount=10

Quote:
Originally Posted by Kalcor
Here is all anyone needs to know about gpci:
- It is a non-reversible (lossy) hash derived from information about your San Andreas installation path.
- It is not a unique ID.
- It was added to assist owners of large servers who deal with constant attacks from cheaters and botters.
- It has been in SA-MP for 2 years.



Re: How to put protection for Proxy? - iulicxd - 28.03.2016

Quote:
Originally Posted by Burridge
Посмотреть сообщение
You could ban their serial instead.

A good example of how it works: http://forum.sa-mp.com/showpost.php?...0&postcount=10
Код:
    native gpci(playerid, serial[], len);

    new playerserial[128];
    gpci(playerid,playerserial,sizeof(playerserial));
Is need include?or it will work without include?


Re: How to put protection for Proxy? - Burridge - 28.03.2016

The only line of code you need to use it is
pawn Код:
native gpci(playerid, serial[], len);
Put it somewhere near the top of your script.


Re: How to put protection for Proxy? - iulicxd - 28.03.2016

Quote:
Originally Posted by Burridge
Посмотреть сообщение
The only line of code you need to use it is
pawn Код:
native gpci(playerid, serial[], len);
Put it somewhere near the top of your script.
Ok thanks,i will give +rep