SA-MP Forums Archive
RemovePLayerFromVehicle - 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: RemovePLayerFromVehicle (/showthread.php?tid=624524)



RemovePLayerFromVehicle - MerryDeer - 18.12.2016

Hi,

RemovePlayerFromVehicle some cheaters can prevent from this, how check if player was removed or not, if not kick?


Re: RemovePLayerFromVehicle - Logic_ - 18.12.2016

Try this...
PHP код:
RemovePlayerFromVehicleEx(playerid)
{
    new 
Vehicle GetPlayerVehicleID(playerid);
    
RemovePlayerFromVehicle(playerid);
    if(
IsPlayerInAnyVehicleVehicle(playerid))
    {
        new 
VehicleV GetPlayerVehicleID(playerid);
        if(
VehicleV == VehicleKick(playerid);
    }
    return 
1;




Re: RemovePLayerFromVehicle - MerryDeer - 18.12.2016

When this function used, player still in vehicle


Re: RemovePLayerFromVehicle - BiosMarcel - 18.12.2016

You might want to try removing them another way

https://sampwiki.blast.hk/wiki/SetPlayerPos

Use SetPlayerPos