SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/12/2014, 07:29 PM   #1
Banditukas
Banned
 
Join Date: Jul 2014
Posts: 534
Reputation: 2
Default Anti-troll hacking

Hi,

This:

Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(strfind(cmdtext,"kk",true) != -1)
{
return 0;
}
return 1;
}
Prevent from troll hacking?
Banditukas is offline   Reply With Quote
Old 30/12/2014, 07:30 PM   #2
Sledgehammer
Huge Clucker
 
Sledgehammer's Avatar
 
Join Date: Jun 2013
Location: My computer
Posts: 487
Reputation: 114
Default Re: Anti-troll hacking

Care to elaborate what do you mean by "Troll hacking"?
__________________
Sledgehammer is offline   Reply With Quote
Old 30/12/2014, 07:41 PM   #3
Banditukas
Banned
 
Join Date: Jul 2014
Posts: 534
Reputation: 2
Default Re: Anti-troll hacking

http://forum.sa-mp.com/showthread.php?t=540368
Banditukas is offline   Reply With Quote
Old 31/12/2014, 05:21 AM   #4
Ciarannn
Big Clucker
 
Join Date: Feb 2014
Posts: 195
Reputation: 15
Default Re: Anti-troll hacking

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 */'.
__________________
If it's stupid and it works, it ain't stupid.
Ciarannn is offline   Reply With Quote
Old 17/10/2015, 12:35 PM   #5
Scriptery
Big Clucker
 
Join Date: Aug 2015
Location: Romania
Posts: 67
Reputation: 12
Default Re: Anti-troll hacking

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

Last edited by Scriptery; 25/04/2017 at 10:51 PM.
Scriptery is offline   Reply With Quote
Old 17/10/2015, 12:50 PM   #6
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,083
Reputation: 2655
Default Re: Anti-troll hacking

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.
__________________
Vince is offline   Reply With Quote
Old 17/10/2015, 01:26 PM   #7
Crystallize
Banned
 
Join Date: Aug 2013
Posts: 1,499
Reputation: 314
Default Re: Anti-troll hacking

Quote:
Originally Posted by Vince View Post
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...
Crystallize is offline   Reply With Quote
Old 17/10/2015, 06:57 PM   #8
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,140
Reputation: 445
Default Re: Anti-troll hacking

Quote:
Originally Posted by Wizzard2H View Post
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)
Abagail is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for anti Troll Car , aimbot jesdynguyen Scripting Help 4 04/03/2019 09:04 AM
How to Stop this Troll Hacking jesdynguyen Scripting Help 6 04/10/2014 01:41 PM
How to stop troll car , i need some anti code please jesdynguyen Scripting Help 7 12/05/2014 11:02 AM
[Off] (Pawn) bProteção. Anti Hacking ipsBruno Português/Portuguese 78 31/01/2013 01:48 AM


All times are GMT. The time now is 03:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.