24.02.2015, 15:55
PHP код:
CMD:guinchar(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == ID do Veiculo)//Comando so pra esse id do veiculo
{
new closest = GetClosestVehicle(playerid);//
if(VehicleToPlayer(playerid, closest) < 10)//Verificar se o carro ta perto
AttachTrailerToVehicle(closest, GetPlayerVehicleID(playerid));
}
return 1;
}