Posts: 534
Threads: 265
Joined: Jul 2014
Hi,
This:
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(strfind(cmdtext,"kk",true) != -1)
{
return 0;
}
return 1;
}
Prevent from troll hacking?
Posts: 485
Threads: 18
Joined: Jun 2013
Reputation:
0
Care to elaborate what do you mean by "Troll hacking"?
Posts: 534
Threads: 265
Joined: Jul 2014
Posts: 195
Threads: 52
Joined: Feb 2014
Reputation:
0
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 */'.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 1,498
Threads: 110
Joined: Aug 2013
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...