Anti-troll hacking - 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: Anti-troll hacking (
/showthread.php?tid=553624)
Anti-troll hacking -
Banditukas - 30.12.2014
Hi,
This:
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(strfind(cmdtext,"kk",true) != -1)
{
return 0;
}
return 1;
}
Prevent from troll hacking?
Re: Anti-troll hacking -
Sledgehammer - 30.12.2014
Care to elaborate what do you mean by "Troll hacking"?
Re: Anti-troll hacking -
Banditukas - 30.12.2014
https://sampforum.blast.hk/showthread.php?tid=540368
Re: Anti-troll hacking -
Ciarannn - 31.12.2014
That is not a hack. It is just simply a server command. If you are using strcmp for your commands, hit CTRL-F in PAWNO and search for 'if(strfind(cmdtext, "kk", true)', then just delete the command or if you like enclose it with '/* CMD */'.
Re: Anti-troll hacking -
Scriptery - 17.10.2015
Hmm.. commands used by cheat, not send to your server.
OR anti cheat easy, for enter and exist car (this metod is used for any troll hack!)
http://pastebin.com/FajEmztu
Re: Anti-troll hacking -
Vince - 17.10.2015
Does not work because client commands are not sent to the server. Those CLEO bullshit commands work the same way like /pagesize, /fpslimit or other client commands. These aren't sent to the server either.
Re: Anti-troll hacking -
Crystallize - 17.10.2015
Quote:
Originally Posted by Vince
Does not work because client commands are not sent to the server. Those CLEO bullshit commands work the same way like /pagesize, /fpslimit or other client commands. These aren't sent to the server either.
|
I've seen some systems that actually recognize the client command e.g
Vince has used the /blablabla command even though it doesn't exist...
Re: Anti-troll hacking -
Abagail - 17.10.2015
Quote:
Originally Posted by Wizzard2H
I've seen some systems that actually recognize the client command e.g
Vince has used the /blablabla command even though it doesn't exist...
|
That's not the way it works with SAMPFuncs however I assume it may work with something such as AutoHotKey with SA-MP UDF.
(
https://github.com/Suchty112/SAMP-UD...aster/SAMP.ahk)