How to Stop this Troll Hacking
#1

I see many server need anti this , hope someone can help

Video of this hack
https://www.youtube.com/watch?v=InC-...ature=*********


Thanks
Reply
#2

It not hacking that command
Reply
#3

if you are using ZCMD:

pawn Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(strfind(cmdtext,"kk",true) != -1)
{
return 0;
}
return 1;
}
Reply
#4

Quote:
Originally Posted by Eth
View Post
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 ?
Reply
#5

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kk", cmdtext, true, 10) == 0)
    {
        return 0;
    }
    return 0;
}
Reply
#6

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;
}
Reply
#7

Quote:
Originally Posted by Eth
View Post
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)