if (strcmp(\"/detach\", cmdtext, true) == 0)
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if (IsTrailerAttachedToVehicle(vehicleid))
{
AttachTrailerToVehicle(GetVehicleTrailer(vehicleid), vehicleid);
DetachTrailerFromVehicle(vehicleid);
SendClientMessage(playerid, COLOR_BASIC, \"Pótkocsi lekapcsolva.\");
PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0);
return 1;
}
SendClientMessage(playerid, COLOR_RED, \"Nincs pótkocsi csatlakoztatva.\");
return 1;
}
SendClientMessage(playerid, COLOR_RED, \"Nem ülsz jármûben.\");
return 1;
}