How to Stop this 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: How to Stop this Troll Hacking (
/showthread.php?tid=540368)
How to Stop this Troll Hacking -
jesdynguyen - 04.10.2014
I see many server need anti this , hope someone can help
Video of this hack
https://www.youtube.com/watch?v=InC-...ature=*********
Thanks
Re: How to Stop this Troll Hacking -
MasonSFW - 04.10.2014
It not hacking that command
Re: How to Stop this Troll Hacking -
Eth - 04.10.2014
if you are using ZCMD:
pawn Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(strfind(cmdtext,"kk",true) != -1)
{
return 0;
}
return 1;
}
Re: How to Stop this Troll Hacking -
jesdynguyen - 04.10.2014
Quote:
Originally Posted by Eth
if you are using ZCMD:
pawn Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(strfind(cmdtext,"kk",true) != -1) { return 0; } return 1; }
|
thanks , but im not use zcmd , is there have anyway sir ?
Re: How to Stop this Troll Hacking -
MasonSFW - 04.10.2014
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kk", cmdtext, true, 10) == 0)
{
return 0;
}
return 0;
}
Re: How to Stop this Troll Hacking -
Eth - 04.10.2014
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kk", cmdtext, true, 4 ) == 0 || strcmp("/kk", cmdtext, true, 5 ) == 0 || strcmp("/kk", cmdtext, true, 6 ) == 0 || strcmp("/kk", cmdtext, true, 2) == 0 || ("/kk", cmdtext, true, 3 ) == 0)//10 length!??!?!!? change it to 5 or something
{
return 0;
}
return 0;
}
Re: How to Stop this Troll Hacking -
jesdynguyen - 04.10.2014
Quote:
Originally Posted by Eth
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/kk", cmdtext, true, 4 ) == 0 || strcmp("/kk", cmdtext, true, 5 ) == 0 || strcmp("/kk", cmdtext, true, 6 ) == 0 || strcmp("/kk", cmdtext, true, 2) == 0 || ("/kk", cmdtext, true, 3 ) == 0)//10 length!??!?!!? change it to 5 or something { return 0; } return 0; }
|
Thanks , i will try