Car Lights.
#6

I have command /lights but lights are working only in dark.

PHP код:
       if(strcmp(cmd"/lights"true) == 0)
    {
        new 
GetPlayerVehicleID(playerid);
        if(
IsPlayerInAnyVehicle(playerid))
           {
               if(
IsPlayerInAnyVehicle(playerid))
               {
                   new 
seat GetPlayerVehicleSeat(playerid);
                   if(
seat != 0)
                   {
                       return 
1;
                }
             }
            if(
LightsOn[v] == 0)
            {
                  new 
enginelightalarmdoorsbonnetbootobjective;
                
GetVehicleParamsEx(venginelightalarmdoorsbonnetbootobjective);
                
SetVehicleParamsEx(vengineVEHICLE_PARAMS_ONalarmdoorsbonnetbootobjective);
                
LightsOn[v] = 1;
                
//SendClientMessage(playerid, GREY, "You have turned on the lights.");
                
format(stringsizeof(string), "* %s has turned on the lights."PlayerName(playerid));
                 
ProxDetector(30.0playeridstringPURPLEPURPLEPURPLEPURPLEPURPLE);
                return 
1;
            }
            else
            {
                  new 
enginelightalarmdoorsbonnetbootobjective;
                
GetVehicleParamsEx(venginelightalarmdoorsbonnetbootobjective);
                
SetVehicleParamsEx(vengineVEHICLE_PARAMS_OFFalarmdoorsbonnetbootobjective);
                  
LightsOn[v] = 0;
                
//SendClientMessage(playerid, GREY, "You have turned off the lights.");
                
format(stringsizeof(string), "* %s has turned off the lights."PlayerName(playerid));
                  
ProxDetector(30.0playeridstringPURPLEPURPLEPURPLEPURPLEPURPLE);
                return 
1;
              }
        }
        return 
1;
       } 
Reply


Messages In This Thread
Car Lights. - by FaZeRs - 23.07.2013, 16:05
Respuesta: Car Lights. - by yancarlos4500 - 23.07.2013, 16:22
Re: Car Lights. - by Krakuski - 23.07.2013, 16:22
Respuesta: Re: Car Lights. - by yancarlos4500 - 23.07.2013, 16:24
Re: Car Lights. - by Krakuski - 23.07.2013, 16:40
Re: Car Lights. - by FaZeRs - 23.07.2013, 17:13
Re: Car Lights. - by Scenario - 23.07.2013, 17:17
Re: Car Lights. - by FaZeRs - 23.07.2013, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)