20.11.2016, 22:05
Ligar o Carro usando Tecla CTRL Quem pode me disponibilizar?
if ((newkeys & KEY_NO) && !(oldkeys & KEY_NO))
{
new vehicleid, engine,lights,alarm,doors,bonnet,boot,objective;
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if (vehicleid != 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(engine == 0)
{
SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
GameTextForPlayer(playerid, "~w~Motor ~b~~h~ligado~w~.", 1000, 5);
SendClientMessage(playerid, Branco, TagInfo "{FFFFFF}Vocк {00FF00}Ligou{FFFFFF} O Motor Do Veнculo Com Sucesso!");
}
else
{
SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
GameTextForPlayer(playerid, "~w~Motor ~r~desligado~w~.", 1000, 5);
SendClientMessage(playerid, Branco, TagInfo "{FFFFFF}Vocк {FF0000}Desligou{FFFFFF} O Motor Do Veнculo Com Sucesso!");
}
}
}
}