29.02.2012, 16:40
A param in a script I am using is making the vehicle headlights turn off, but I don't know which one it is to stop it.
pawn Код:
if(newkeys & 8192)
{
new car = GetPlayerVehicleID(playerid);
if(GetVehicleModel(car) == 470 || GetVehicleModel(car) == 599 || GetVehicleModel(car) == 490 || GetVehicleModel(car) == 525)
{
new param[7];
GetVehicleParamsEx(car,param[0],param[1],param[2],param[3],param[4],param[5],param[6]);
if(Police[car][Use] == false)
{
Police[car][Use] = true;
Police[car][Siren] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,0.0);
AttachObjectToVehicle(Police[car][Siren],car,-0.8,0.2,1.1,0.0,0.0,0.0);
SetVehicleParamsEx(car,1,param[1],param[2],param[3],param[4],param[5],param[5]);