Hey leute,
ich hab grad versucht das wennn man durch ein Pickup fährt,
das Auto Nitro, oder ein repair bekommt.
Aber das klappt nicht...
hab das so.
repair = CreatePickup(1239,0,840.7410,-2357.9573,12.9285); // repairrepair = CreatePickup(1239,0,850.2082,-2358.2913,12.9285); // repairrepair = CreatePickup(1239,0,831.1281,-2358.3408,12.9285); //repairnitro = CreatePickup(1239,0,839.2735,-2399.9951,12.9285); // nitronitro = CreatePickup(1239,0,851.1667,-2399.6353,12.9285); // nitronitro = CreatePickup(1239,0,827.2542,-2399.2881,12.9285); // nitrorepair = CreatePickup(1239,0,649.0538,-2578.6201,12.9285); //repairrepair = CreatePickup(1239,0,636.2442,-2578.6116,12.9285); // repairrepair = CreatePickup(1239,0,659.7033,-2577.8059,12.9285); // repair
public OnPlayerPickUpPickup(playerid, pickupid){ if(pickupid == repair) { if(IsPlayerInAnyVehicle(playerid)) { RepairVehicle(GetPlayerVehicleID(playerid)); } else if(pickupid == nitro) { AddVehicleComponent(playerid, 1010); } return 1; } return 0;}