Also ich Post dir einfach ma meins hier rein
unter public OnPlayerKeyStateChange
if((newkeys & KEY_NO) && !(oldkeys & KEY_NO))//Bei mir ist das jetzt die taste N müsstes du eventuel noch Ändern kannste bei wiki nach schauen^^
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new string[256];
new engine,light,alarm,doors,bonnet,boot,objective;
new veh = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(veh,engine,light,alarm,doors,bonnet,boot,objective);
if(Motor[veh] == 0)
{
SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,light,alarm,doors,bonnet,boot,objective);
format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~Motor~g~An");
GameTextForPlayer(playerid, string, 4000, 3);
Motor[veh] = 1;
}
else
{
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,light,alarm,doors,bonnet,boot,objective);
format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~w~Motor~r~Aus");
GameTextForPlayer(playerid, string, 4000, 3);
Motor[veh] = 0;
}
}
}
return 1;
}
mfg