How do I make it so when all vehicles spawn in when the server start the bicyckles are "on"
#3

Quote:
Originally Posted by RedFusion
Посмотреть сообщение
OnVehicleSpawn is only called when a vehicle respawns.
So you need to set the engine parameter to on when the vehicle is created, too.

pawn Код:
new vehicleid = CreateVehicle(....);
if(IsModelABycicle(vehicleid))
{
 GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
 SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
Thanks
Reply


Messages In This Thread
How do I make it so when all vehicles spawn in when the server start the bicyckles are "on" - by Don_Cage - 25.06.2014, 21:58
Re: How do I make it so when all vehicles spawn in when the server start the bicyckles are "on" - by RedFusion - 25.06.2014, 23:18
Re: How do I make it so when all vehicles spawn in when the server start the bicyckles are "on" - by Don_Cage - 26.06.2014, 11:52

Forum Jump:


Users browsing this thread: 1 Guest(s)