[Ajuda] Ligar e desligar faro: CODE
#1

Olб pessoal, primeiramente bom dia estou com um problema em um code para ligar/desligar os farуis do veiculo:
Код:
CMD:ligarf(playerid, params [])
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(playerid, engine, lights, alarm, doors, bonnet, boot, objective);
	SetVehicleParamsEx(playerid, engine,1, alarm, doors, bonnet, boot, objective); //liga o farol c tiver desligado

	return 1;
}
CMD:desligarf(playerid, params [])
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(playerid, engine, lights, alarm, doors, bonnet, boot, objective);
	SetVehicleParamsEx(playerid, engine,0, alarm, doors, bonnet, boot, objective);// desliga o farol c tiver ligado

	return 1;
}
Poderiam me ajudar com esse problema?
Reply
#2

pawn Код:
CMD:ligarf(playerid, params [])
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine,1, alarm, doors, bonnet, boot, objective); //liga o farol c tiver desligado

    return 1;
}
CMD:desligarf(playerid, params [])
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine,0, alarm, doors, bonnet, boot, objective);// desliga o farol c tiver ligado

    return 1;
}
Reply
#3

Nгo prestou
ex:
o comando й para ligar/desligar farуis do veiculo mai nгo acontece nada '-'

skype: Andrielbad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)