2021-05-04, 04:38 AM
(This post was last modified: 2021-05-20, 03:11 AM by PutuSuhartawan.)
SOLUTION:
Source Pawn :?Blinking Lights.pwn
Tutorial :?Video
Problem:
function to turn on the vehicle lights so that it blinks like a siren
someone intelligent has asked. but I only know the parameter toggle lights and also neon. how do you turn on the flashing lights without fluorescent?
Code:
public UpdateServer(playerid)
{
? ? ? new vehicleid = GetPVarInt(playerid,"BlinkVehID"), panels, doors, lights, tires;
? ? ? if(g_vehicle_params[vehicleid][V_BLINK] == true)
? ? ? {
? ? ? ? ? ? GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
? ? ? ? ? ?
? ? ? ? ? ? if(g_vehicle_params[vehicleid][V_BLINKING] == 1)
? ? ? ? ? ? {
? ? ? ? ? ? ? UpdateVehicleDamageStatus(vehicleid, 0, doors, 1, tires);
? ? ? ? ? ? ? g_vehicle_params[vehicleid][V_BLINKING] = 69;
? ? ? ? ? ? }
? ? ? ? ? ? else if(g_vehicle_params[vehicleid][V_BLINKING] == 69)
? ? ? ? ? ? {
? ? ? ? ? ? ? UpdateVehicleDamageStatus(vehicleid, 0, doors, 69, tires);
? ? ? ? ? ? ? g_vehicle_params[vehicleid][V_BLINKING] = 0;
? ? ? ? ? ? }
? ? ? ? ? ? else if(g_vehicle_params[vehicleid][V_BLINKING] == 0)
? ? ? ? ? ? {
? ? ? ? ? ? ? UpdateVehicleDamageStatus(vehicleid, 0, doors, 1, tires);
? ? ? ? ? ? ? g_vehicle_params[vehicleid][V_BLINKING] = 4;
? ? ? ? ? ? }
? ? ? ? ? ? else
? ? ? ? ? ? {
? ? ? ? ? ? ? UpdateVehicleDamageStatus(vehicleid, 0, doors, 4, tires);
? ? ? ? ? ? ? g_vehicle_params[vehicleid][V_BLINKING] = 1;
? ? ? ? ? ? }
? ? ? ?
? ? ? }
}
Source Pawn :?Blinking Lights.pwn
Tutorial :?Video
Problem:
function to turn on the vehicle lights so that it blinks like a siren
someone intelligent has asked. but I only know the parameter toggle lights and also neon. how do you turn on the flashing lights without fluorescent?