Making vehicle default locked - 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 vehicle default locked (
/showthread.php?tid=659242)
Making vehicle default locked -
Danielknow - 28.09.2018
what i need change here?
Код:
public OnVehicleSpawn(vehicleid)
{
UnlockVehicle(vehicleid);
if(!strcmp(VehicleInfo[FindVehicleID(vehicleid)][vOwner], "NoBodY", false) || VehicleInfo[FindVehicleID(vehicleid)][vSellPrice] > 0) UnlockVehicle(vehicleid);
else
{
if(DoesVehicleHaveLock(vehicleid) == true) LockVehicle(-1, vehicleid);
}
SetTimerEx("ModCar", 1000, 0, "d", vehicleid);
ChangeVehiclePaintjob(vehicleid, VehicleInfo[FindVehicleID(vehicleid)][vPaintJob]);
return 1;
}
Re: Making vehicle default locked -
Electrifying - 28.09.2018
What you want to do?
If you want to lock the door
https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
Re: Making vehicle default locked -
Danielknow - 28.09.2018
Quote:
Originally Posted by Electrifying
|
i have vehicle lock / unlock system but after server restart all cars unlocked
Re: Making vehicle default locked -
PapaSmerf - 28.09.2018
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
Re: Making vehicle default locked -
Electrifying - 28.09.2018
Quote:
Originally Posted by Danielknow
i have vehicle lock / unlock system but after server restart all cars unlocked
|
use OnGameModeInit