SA-MP Forums Archive
Need Help with Anti cheat. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Help with Anti cheat. (/showthread.php?tid=581728)



Need Help with Anti cheat. - MBilal - 15.07.2015

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?