detect spec hack?
#5

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

I had tried that, but sometimes the position of the camera with that of the player varies a lot.

Would you help me improve it?

PHP код:
new Float:PosPlayer[3], Float:PosCamera[3];
        
GetPlayerCameraPos(playeridPosCamera[0], PosCamera[1], PosCamera[2]);
        
GetPlayerPos(playeridPosPlayer[0], PosPlayer[1], PosPlayer[2]);
        new 
Float:PosFinal[3];
        
PosFinal[0] = PosCamera[0]-PosPlayer[0];
        
PosFinal[1] = PosCamera[1]-PosPlayer[1];
        if(
PosFinal[0] > 20 || PosFinal[0] < -20)
        {
            
//cheat
        
}
        if(
PosFinal[1] > 20 || PosFinal[1] < -20)
        {
            
//cheat
        

Reply


Messages In This Thread
detect spec hack? - by FelipeAndres - 15.04.2017, 17:15
Re: detect spec hack? - by GangstaSunny. - 15.04.2017, 17:39
Respuesta: detect spec hack? - by FelipeAndres - 15.04.2017, 17:44
Re: detect spec hack? - by LEOTorres - 15.04.2017, 17:54
Respuesta: Re: detect spec hack? - by FelipeAndres - 15.04.2017, 17:58
Re: detect spec hack? - by Unrea1 - 15.04.2017, 18:08
Respuesta: Re: detect spec hack? - by FelipeAndres - 15.04.2017, 18:23
Re: Respuesta: Re: detect spec hack? - by LEOTorres - 15.04.2017, 18:24
Re: detect spec hack? - by AbyssMorgan - 15.04.2017, 18:33
Re: detect spec hack? - by AbyssMorgan - 15.04.2017, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)