detect spec hack?
#10

PHP код:
stock bool:IsPlayerFakeSpectating(playerid,bool:force_disable=true){
    if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && IsPlayerAdmin(playerid)) return false//admins spectacing detect
    
if(GetPlayerCameraMode(playerid) != 4) return false;
    new 
Float:px,Float:py,Float:pz,Float:cx,Float:cy,Float:cz;
    
GetPlayerPos(playerid,px,py,pz);
    
GetPlayerCameraPos(playerid,cx,cy,cz);
    if(
VectorSize(px-cx,py-cy,pz-cz) < 20.0) return false;
    
    if(
force_disableSetCameraBehindPlayer(playerid);
    return 
true;

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)