Need Help with Anti cheat.
#1

PHP код:
public OnUnoccupiedVehicleUpdate(vehicleidplayeridpassenger_seat)
{
    
GetVehiclePos(vehicleidg_ucPos[0], g_ucPos[1], g_ucPos[2]);// this get vehicle id position
     
if(!IsPlayerInRangeOfPoint(playerid40.0g_ucPos[0], g_ucPos[1], g_ucPos[2]))// this check if players is not in range of that vehicle respawn it
      
{
        if(!
IsPlayerInAnyVehicle(playerid))
         {
             
SetVehicleToRespawn(vehicleid); //this will respawn it // but problem is it keep respawning that vehicle or vehicle in that range. 
        
}
    }
return 
1;

Any better way Fix it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)