Ayuda con esto por favor.
#1

Hola a todos, Lo que me estб sucediendo es que yo estoy utilizando unas funciones para mi sistema de vehнculos en mi GM de 0, Pero lo que pasa es que cuando yo voy a encender las luces del vehнculo solo encienden cuando estб de noche en el servidor, y cuando estб de dнa no funciona el sistema, Si alguien sabe la soluciуn a esto le agradecerнa muchнsimo. PD: +rep

new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,d oors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS _ON,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS _OFF,alarm,doors,bonnet,boot,objective);
Reply
#2

Amigo tienes que agregar esta funciуn ManualVehicleEngineAndLights(); bajo la publica OnGameModeInit() ,luego tienes que hacer un cуdigo como por ejemplo para encender el motor

Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);
// Encendiendo el motor y las luces
Te dejo el link de la funciуn https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights por si tienes alguna duda.
Reply
#3

Muchнsimas gracias men, Eres el mejor
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)