SA-MP Forums Archive
Making it so you cant enter faction locked vehicles.. - 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: Making it so you cant enter faction locked vehicles.. (/showthread.php?tid=358692)



Making it so you cant enter faction locked vehicles.. - Euan Hughes - 11.07.2012

Well i am trying to make it so if your not in the faction you cant even attempt to get in the car it will just do nothing.

This worked about a week ago and now it just wont work for some reason.

Can anyone help me please.

pawn Код:
if(Vehicles[vehicleid][CarGroup] != 0 && Vehicles[vehicleid][CarGroup] != Player[playerid][Group])
    {
        if(ispassenger == 0)
        {
            ClearAnimations(playerid);
        }
    }
Please help

Thanks