Where can I find hack detect script?
#9

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
OnPlayerSpawn:

pawn Код:
new Float: frontCameraVectors[3];
GetPlayerCameraFrontVector(playerid, frontCameraVectors[0], frontCameraVectors[1], frontCameraVectors[2]);

if(frontCameraVectors[2] < -0.8)
{
    // Hacks installed
}
This is a piece of code I took from my new anticheat which will be released soon. I saw the code in a filterscript before it was deleted and I know a friend who used it on a popular roleplay server and it seems to work fine.
I tried doing this and it hasn't worked at all so far. Every time I spawn, frontCameraVectors[2] is always -0.0, both when I do and do not have n00biet installed and activated. sometimes I also get garbled input for frontCameraVectors[0] when I try to printf it with %.1f, too. Normal gameplay and F4 + kill always result in frontCameraVectors[2] being -0.0.

HOWEVER, I think using GetPlayerCameraFrontVector with finding what direction a player is facing could be used to detect if a player is using joypad or mouse + keys configuration.
Reply


Messages In This Thread
Where can I find hack detect script? - by Passout - 06.07.2013, 03:56
Re: Where can I find hack detect script? - by SuperViper - 06.07.2013, 04:52
Re: Where can I find hack detect script? - by SwisherSweet - 06.07.2013, 05:41
Re: Where can I find hack detect script? - by SwisherSweet - 06.07.2013, 06:32
Re: Where can I find hack detect script? - by SuperViper - 06.07.2013, 18:27
Re: Where can I find hack detect script? - by exclide1 - 06.07.2013, 18:41
Re: Where can I find hack detect script? - by exclide1 - 06.07.2013, 19:07
Re: Where can I find hack detect script? - by Passout - 07.07.2013, 18:51
Re: Where can I find hack detect script? - by Alternative112 - 07.07.2013, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)