[Help]When I leave the vehicle turns on the light -
Miguelito9801 - 03.09.2015
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
Re: [Help]When I leave the vehicle turns on the light -
Bomber07 - 03.09.2015
just in your script ?
Re: [Help]When I leave the vehicle turns on the light -
Miguelito9801 - 04.09.2015
in commands
PHP код:
CMD:luz(playerid, params[])
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, 1, 0,0,0,0,0);
// (vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
//GetPlayerVehicleID
return 1;
}
CMD:noluz(playerid, params[])
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, 0, 0,0,0,0,0);
// (vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
//GetPlayerVehicleID
return 1;
}
I have only these commands
Re : [Help]When I leave the vehicle turns on the light -
KillerDVX - 04.09.2015
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
-KillerDVX.
Re: Re : [Help]When I leave the vehicle turns on the light -
Miguelito9801 - 04.09.2015
Quote:
Originally Posted by KillerDVX
|
that's what I noted above
Re: [Help]When I leave the vehicle turns on the light -
mirou123 - 04.09.2015
What do you have under OnPlayerExitVehicle, OnPlayerEnterVehicle and OnPlayerStateChange?
Re: [Help]When I leave the vehicle turns on the light -
Miguelito9801 - 04.09.2015
I don't have these callbacks
OnPlayerExitVehicle and OnPlayerEnterVehicle
In OnPlayerStateChange
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i; i < 15; i++)
TextDrawShowForPlayer(playerid, TextDrawsVelocimetro[TDSpeedClock][i]);
for(new i; i < 4; i++)
TextDrawsd[playerid][i] = TextDrawCreate(555.0, 402.0, "~b~.");
}
else
{
TextDrawHideForPlayer(playerid, KmH);
for(new i; i < 4; i++)
TextDrawHideForPlayer(playerid, TextDrawsd[playerid][i]);
for(new i; i < 15; i++)
TextDrawHideForPlayer(playerid, TextDrawsVelocimetro[TDSpeedClock][i]);
}
return 1;
}
Re: [Help]When I leave the vehicle turns on the light -
GXLZPGX - 04.09.2015
The cmd functions aren't the problem, mind showing us where you use the command functions?
Re: [Help]When I leave the vehicle turns on the light -
mirou123 - 04.09.2015
Search for SetVehicleParamsEx and whenever you find it post the block here.
Re: [Help]When I leave the vehicle turns on the light -
Miguelito9801 - 04.09.2015
but I have nothing more to do with the condition of the vehicle had done searching this function
SetVehicleParamsEx and put into practice