28.10.2012, 16:56
Iґve got a little Problem.
I want to set the pos of a Vehicle and itґs Trailer.
Iґve this Code:
if(!strcmp(cmdtext, "/oamt", true))
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 1239.00, 180.10000610352, 20))
{
new vehicleid = GetPlayerVehicleID(playerid);
new trailerid = GetVehicleTrailer(GetPlayerVehicleID(playerid));
SetVehiclePos(vehicleid, 0, 0, 3);
SetVehiclePos(trailerid, 5, 0, 3);
AttachTrailerToVehicle(trailerid, vehicleid);
}
return 1;
}
When i type in the command both get teleported but the Trailer gets teleported back after half an second.
Sry for my bad english but on the german Forum no one is able to help me.
mfg
stief
I want to set the pos of a Vehicle and itґs Trailer.
Iґve this Code:
if(!strcmp(cmdtext, "/oamt", true))
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 1239.00, 180.10000610352, 20))
{
new vehicleid = GetPlayerVehicleID(playerid);
new trailerid = GetVehicleTrailer(GetPlayerVehicleID(playerid));
SetVehiclePos(vehicleid, 0, 0, 3);
SetVehiclePos(trailerid, 5, 0, 3);
AttachTrailerToVehicle(trailerid, vehicleid);
}
return 1;
}
When i type in the command both get teleported but the Trailer gets teleported back after half an second.
Sry for my bad english but on the german Forum no one is able to help me.
mfg
stief