Making vehicle default locked
#1

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;
}
Reply
#2

What you want to do?

If you want to lock the door

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
Reply
#3

Quote:
Originally Posted by Electrifying
Посмотреть сообщение
What you want to do?

If you want to lock the door

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
i have vehicle lock / unlock system but after server restart all cars unlocked
Reply
#4

https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
Reply
#5

Quote:
Originally Posted by Danielknow
Посмотреть сообщение
i have vehicle lock / unlock system but after server restart all cars unlocked
use OnGameModeInit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)