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



Locked Bikes - StR_MaRy - 17.02.2017

hey guys i have a glich on my server my civil cars are locked seccond time when you want to get in i added vehicle params and setted to locked doors to 0 and a timer to make the doors open every seccond .. but still didn't work

Код HTML:
function IsACivCar(vehicleid)
{
	for(new i = 0; i < sizeof(civcar); i++)
	{
		SetVehicleParamsEx(vehicleid,engine,lights,alarm,0,bonnet,boot,objective);
		if(vehicleid == civcar[i]) return 1;
	}
	return 0;
}



Re: Locked Bikes - Scriptery - 19.08.2017

Samp not have glitch with vehicle doors, maybay your client problem, or your script is bad.

Please dont`t create a timer for this shit problem, expect your bad script, or check vehicle is for civils and open it door for player when called: "OnPlayerEnterVehicle".

PS. for check vehicle model, exist GetVehicleModel. Good luck on pawno forum.