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.