Hey,
ich wollte mal fragen:
Wie kann ich bei VehicleChange machen, dass, wenn das auto wechselt, der immernich in der gleichen GSW weiterfährt?
Momentan sieht mein Code so aus::
stock Nitro(Float:X, Float:Y, Float:Z)
{
CreatePickup(1252,1,X,Y,Z);
return 1;
}
stock Repair(Float:X, Float:Y, Float:Z)
{
CreatePickup(1240,1,X,Y,Z);
return 1;
}
stock VehChange(Float:X, Float:Y, Float:Z, veh)
{
new veh = GetPlayerVehicleID(playerid);
new Float:px,Float:py,Float:pz,Float:pa;
GetPlayerPos(playerid,px,py,pz);
GetPlayerFacingAngle(playerid,pa);
DestroyVehicle(veh);
new carid = CreateVehicle(veh, px, py, pz, pa, -1, -1, 60000);
PutPlayerInVehicle(playerid, carid, 0);
return 1;
}
{
CreatePickup(1252,1,X,Y,Z);
return 1;
}
stock Repair(Float:X, Float:Y, Float:Z)
{
CreatePickup(1240,1,X,Y,Z);
return 1;
}
stock VehChange(Float:X, Float:Y, Float:Z, veh)
{
new veh = GetPlayerVehicleID(playerid);
new Float:px,Float:py,Float:pz,Float:pa;
GetPlayerPos(playerid,px,py,pz);
GetPlayerFacingAngle(playerid,pa);
DestroyVehicle(veh);
new carid = CreateVehicle(veh, px, py, pz, pa, -1, -1, 60000);
PutPlayerInVehicle(playerid, carid, 0);
return 1;
}