[Help]When I leave the vehicle turns on the light
#1

when I leave the vehicle turns on the light and entering the vehicle when the light goes off
because they believe it?
help me please
Reply
#2

just in your script ?
Reply
#3

in commands
PHP код:
CMD:luz(playeridparams[])
{
    
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 110,0,0,0,0);
   
// (vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
    //GetPlayerVehicleID
    
return 1;
}
CMD:noluz(playeridparams[])
{
    
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 100,0,0,0,0);
   
// (vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
    //GetPlayerVehicleID
    
return 1;

I have only these commands
Reply
#4

https://sampwiki.blast.hk/wiki/SetVehicleParamsEx

-KillerDVX.
Reply
#5

Quote:
Originally Posted by KillerDVX
Посмотреть сообщение
that's what I noted above
Reply
#6

What do you have under OnPlayerExitVehicle, OnPlayerEnterVehicle and OnPlayerStateChange?
Reply
#7

I don't have these callbacks OnPlayerExitVehicle and OnPlayerEnterVehicle
In OnPlayerStateChange
PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
        if(
newstate == PLAYER_STATE_DRIVER)
        {
                for(new 
i15i++)
                        
TextDrawShowForPlayer(playeridTextDrawsVelocimetro[TDSpeedClock][i]);
                for(new 
i4i++)
                        
TextDrawsd[playerid][i] = TextDrawCreate(555.0402.0"~b~.");
        }
        else
        {
                
TextDrawHideForPlayer(playeridKmH);
                for(new 
i4i++)
                    
TextDrawHideForPlayer(playeridTextDrawsd[playerid][i]);
                for(new 
i15i++)
                    
TextDrawHideForPlayer(playeridTextDrawsVelocimetro[TDSpeedClock][i]);
                        
        }
        return 
1;

Reply
#8

The cmd functions aren't the problem, mind showing us where you use the command functions?
Reply
#9

Search for SetVehicleParamsEx and whenever you find it post the block here.
Reply
#10

but I have nothing more to do with the condition of the vehicle had done searching this function SetVehicleParamsEx and put into practice
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)