AlexCelTare Posted October 14, 2022 Posted October 14, 2022 imi face cineva un sistem de light(farurile) si de engine la masina rog frumos! am facut eu ceva da nu mi-a iesit. ROG FRMS RAU
hanako Posted October 14, 2022 Posted October 14, 2022 n-o sa-ti faca nimeni, incearca sa-ti faci singur, si daca exista probleme posteaza-le si noi o sa te ajutam. https://open.mp/docs/scripting/functions/SetVehicleParamsEx
AlexCelTare Posted October 15, 2022 Author Posted October 15, 2022 19 hours ago, hanako said: n-o sa-ti faca nimeni, incearca sa-ti faci singur, si daca exista probleme posteaza-le si noi o sa te ajutam. https://open.mp/docs/scripting/functions/SetVehicleParamsEx asta e ideea ca am incercat si n-a iesit nmc
Corey_ Posted December 12, 2022 Posted December 12, 2022 On 10/15/2022 at 2:06 PM, AlexCelTare said: asta e ideea ca am incercat si n-a iesit nmc #include <a_samp> new CoreENGINE,CoreLIGHTS,CoreCARalarm, CoreCARdoors,CoreCARBonnet,CoreCARBooty,CoreSobjective; public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new veh = GetPlayerVehicleID(playerid); //------------------------------------------------------------------------------ if(newkeys == KEY_LOOK_BEHIND) //2 { if(GetPVarInt(playerid, "Lights") == 0) { GetVehicleParamsEx(veh,CoreENGINE,CoreLIGHTS,CoreCARalarm,CoreCARdoors,CoreCARBonnet,CoreCARBooty,CoreSobjective); SetVehicleParamsEx(veh,CoreENGINE,VEHICLE_PARAMS_ON,CoreCARalarm,CoreCARdoors,CoreCARBonnet,CoreCARBooty,CoreSobjective); SetPVarInt(playerid, "Lights", 1); SendClientMessage(playerid,-1,"Luminile au fost aprinse."); } else if(GetPVarInt(playerid, "Lights") == 1) { GetVehicleParamsEx(veh,CoreENGINE,CoreLIGHTS,CoreCARalarm,CoreCARdoors,CoreCARBonnet,CoreCARBooty,CoreSobjective); SetVehicleParamsEx(veh,CoreENGINE,VEHICLE_PARAMS_OFF,CoreCARalarm,CoreCARdoors,CoreCARBonnet,CoreCARBooty,CoreSobjective); SetPVarInt(playerid, "Lights", 0); SendClientMessage(playerid,-1,"Luminile au fost stinse."); } //------------------------------------------------------------------------------ } return 1; } De inceput, poti continua tu mai departe.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now