SA-MP Forums Archive
Vehicle lock buged - 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: Vehicle lock buged (/showthread.php?tid=435408)



Vehicle lock buged - BlackRaven - 06.05.2013

I got a problem this code doesnt lock the vehicles.

pawn Код:
if(vehicleinfo[key[vkey[playerid]]][Lock] == 1)
            {
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    SetVehicleParamsForPlayer(vkey[playerid],i,0,1);
                    vehicleinfo[key[vkey[playerid]]][Lock] = 1;
                    printf("test");
                }
            }



Re: Vehicle lock buged - arakuta - 06.05.2013

From 0.3 you will have to re-apply this function when OnVehicleStreamIn is called!