Exa Posted January 5, 2021 Share Posted January 5, 2021 Salut sa:mp am si eu o problema la toate masinile si motocicletele se baga 2 neon dar la nrg vreau sa fie doar unu si nu pot am incercat cu if(model == 522) cu switch(car) { case 522: Si am pus acolo 1 neon dar nu merge, ma poate ajuta cineva? Poftim codu function AttachNeon(carid) { if(CarInfo[carid][cNeon] == 0) return true; new vehicleid = CarInfo[carid][Spawned]; switch(CarInfo[carid][cNeon]) { case 1: { NeonObj[0][vehicleid] = CreateDynamicObject(18652,0,0,0,0,0,0); NeonObj[1][vehicleid] = CreateDynamicObject(18652,0,0,0,0,0,0); } case 2: { NeonObj[0][vehicleid] = CreateDynamicObject(18651,0,0,0,0,0,0); NeonObj[1][vehicleid] = CreateDynamicObject(18651,0,0,0,0,0,0); } case 3: { NeonObj[0][vehicleid] = CreateDynamicObject(18650,0,0,0,0,0,0); NeonObj[1][vehicleid] = CreateDynamicObject(18650,0,0,0,0,0,0); } case 4: { NeonObj[0][vehicleid] = CreateDynamicObject(18649,0,0,0,0,0,0); NeonObj[1][vehicleid] = CreateDynamicObject(18649,0,0,0,0,0,0); } case 5: { NeonObj[0][vehicleid] = CreateDynamicObject(18648,0,0,0,0,0,0); NeonObj[1][vehicleid] = CreateDynamicObject(18648,0,0,0,0,0,0); } case 6: { NeonObj[0][vehicleid] = CreateDynamicObject(18647,0,0,0,0,0,0); NeonObj[1][vehicleid] = CreateDynamicObject(18647,0,0,0,0,0,0); } } AttachDynamicObjectToVehicle(NeonObj[0][vehicleid], CarInfo[carid][Spawned], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(NeonObj[1][vehicleid], CarInfo[carid][Spawned], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); return true; } Link to comment Share on other sites More sharing options...
Manager L0K3D Posted January 18, 2021 Manager Share Posted January 18, 2021 Problema a fost rezolvată. Topic închis! Server Query and RCON API | Actualizare script fara restart | Tips & Tricks Eureka v0.2 / Discord Eureka Link to comment Share on other sites More sharing options...
Recommended Posts